1

All are from this post.

What does these statement mean:

error(nargchk(5, 6, nargin));

plot(p(:,1), p(:,2), '.-'), axis equal

And what's this kinda syntax which I haven't quite often seen:

if nargin<6, steps = 36; end
Community
  • 1
  • 1
user198729
  • 58,910
  • 106
  • 245
  • 345

2 Answers2

2

I hope I don't come over as too unhelpful, but have you tried:

  • using Matlab's built-in help facilities to discover for yourself what the various statements mean ? or
  • running any of the code ?

All the statements are Matlab intrinsics and well documented. The use of , to separate statements on the same line is a bit unusual (I, for one, would usually put the statements on different lines in your examples), but not incorrect

High Performance Mark
  • 75,673
  • 7
  • 99
  • 152
1

Take a look at

help plot
help axis
help nargin
midtiby
  • 13,632
  • 6
  • 31
  • 42