Plot - Programmers Heaven

Howdy, Stranger!

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

Categories

Plot

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

mfile=zeros(3,10001);

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


end
f=470:790
plot(f,mfile)

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

Error in ==> transformare at 11
plot(f,mfile)[/color]

Thanks for the help.

Comments

  • 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
    www.makeyourassignment.com
    [email protected]

Sign In or Register to comment.