[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help testing max() function
From: |
Steph Bredenhann |
Subject: |
Re: Help testing max() function |
Date: |
Fri, 26 Sep 2014 13:41:10 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
Results on Win 7 R2014a
>> max ([2, 2i])
ans =
0.0000 + 2.0000i
>> max (sparse ([2, 2i])
max (sparse ([2, 2i])
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.
>> max (sparse ([2, 2i]))
ans =
(1,1) 0.0000 + 2.0000i
>> sort ([1 i -1 -i].', 'ascend')
ans =
0.0000 - 1.0000i
1.0000 + 0.0000i
0.0000 + 1.0000i
-1.0000 + 0.0000i
>> sort ([1 i -1 -i]', 'ascend')
ans =
0.0000 - 1.0000i
1.0000 + 0.0000i
0.0000 + 1.0000i
-1.0000 + 0.0000i
>>