Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Plot Posted by Emilia002Z on 25 May 2012 at 2:55 AM
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:
Error using ==> plot
Vectors must be the same lengths.

Error in ==> transformare at 11
plot(f,mfile)


Thanks for the help.
Report
Re: Plot Posted by Yashab on 27 Jun 2012 at 3:53 PM
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.
--------------------------------------------------------------



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
makeyourassignment@gmail.com




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.