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.


  • [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

Sign In or Register to comment.

Howdy, Stranger!

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


In this Discussion