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
  • 61,774
  • 108
  • 250
  • 348

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
  • 77,191
  • 7
  • 105
  • 161
1

Take a look at

help plot
help axis
help nargin
midtiby
  • 14,550
  • 6
  • 34
  • 43