|
From: | lana frankle |
Subject: | Re: displaying an image |
Date: | Fri, 11 Sep 2015 22:02:20 -0700 |
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")
See https://www.gnu.org/software/octave/doc/interpreter/Commands.html
Hope that clears things up,
--
mike
[Prev in Thread] | Current Thread | [Next in Thread] |