|
From: | Doug Stewart |
Subject: | Re: Problem with the commands |
Date: | Mon, 9 Sep 2019 09:02:55 -0400 |
Hi,I type the following commands to get the max of a and the index of that max. My expected answer is:val = 15ind = 2But after I typed the following commands, I got an error message. Could you please let me know how to write the commands correctly?Thank you.Here are the commands I typed in Octave:
>> a
a =
1.00000 15.00000 2.00000 0.50000
>> [val. ind] = max (a)
parse error:
syntax error
>>> [val. ind] = max (a)
^why did you name it val. <<<< there should not be a period there.
[Prev in Thread] | Current Thread | [Next in Thread] |