[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying an image

From: Mike Miller
Subject: Re: displaying an image
Date: Fri, 4 Sep 2015 11:03:57 -0400

On Thu, Sep 3, 2015 at 12:43:15 -0700, lana frankle wrote:
> Do you know if those errors (the lack of space for help and doc and the
> colon instead of the semicolon) are correct for MATLAB, just not Octave?  Or
> are they just errors?

Ending a line with a colon is simply invalid syntax, in both Matlab and Octave.

Note the "lack of space" is not an error, it's the difference between
these two commands

  >> help(imagesc)
  >> help imagesc

It's not the space that matters, it's the parentheses around the
arguments. The first form is calling the imagesc() function with no
arguments (which is what produces the error you see) and then attempts
to pass the return value to the help function.

The second form is the same as

  >> help("imagesc")


Hope that clears things up,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]