Editor error

edited September 2007 in Science & Tech
I am new to Matlab (student) and I am trying to run this (below) in the command window after typing it as an M-file.

n=25;


a = round(linspace(1000,9999,n));

b=round(randn(n,1)*17+68);

c=round(randn(n,1)*15+75);

d=round(randn(n,1)*19+82);

Do you have any suggestions for this isn't running. It keeps giving me an error about an illegal input?

Thank you,
ld

Comments

  • shwaipshwaip bluffin' with my muffin Icrontian
    edited September 2007
    i don't see any problem. if you could attach your .m file, then maybe i could get the same error...
  • edited September 2007
    I don't see any problems, what version of MATLAB are you running?
  • edited September 2007
    I'm running v7 student edition, it seems to work sometimes. I might mention when I try to print from the editor, the editor hangs.
Sign In or Register to comment.