Plot - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.


Emilia002ZEmilia002Z Posts: 1Member
I have a problem when I want to plot the mfile


for nr_fisier = 1:14000
filename = strcat(int2str(1),'_',int2str(nr_fisier+1),'.csv');
mfile(nr_fisier,:) = csvread(filename,16,1);


it sais:
[color=Red]Error using ==> plot
Vectors must be the same lengths.

Error in ==> transformare at 11

Thanks for the help.


  • YashabYashab Posts: 13Member
    [b]you have to make sure that the f and plot(f,mfile) m file should of the same lenght first calculate the size of mfile and then make it plot with f or u can change f once u get to know the size of mfile.[/b]

    MATLAB a numerical computing programming language being heavily used nowadays. If you are worried about your MATLAB assignments and final year projects? We have been providing MATLAB based assistance to students from various universities in graduate and undergraduate level. We provide high quality MATLAB projects & assignment help for students in universities of UK, USA, Australia, India, Dubai, KSA , Canada and several European countries at reasonable rates. Our assignments guarantee maximum grades, we not only make assignments, and we tutor the students as well so that next time they try themselves. We believe in sharing knowledge and enabling students to facilitate with maximum knowledge and quality work. Visit our website at
    [email protected]

Sign In or Register to comment.