help-octave
[Top][All Lists]
Advanced

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

binary operators not implemented for 'cell' by 'scalar' operations


From: Jonathan Camilleri
Subject: binary operators not implemented for 'cell' by 'scalar' operations
Date: Tue, 24 Nov 2015 09:56:01 +0100

I thought I could do matrix multiplications and the mathematical operators, but evidently I cannot.

See
https://en.wikipedia.org/wiki/Operation_(mathematics)
https://en.wikipedia.org/wiki/Algebra
https://en.wikipedia.org/wiki/Order_of_operations


 m1 = {1 1; 2 4; 4 8; 3 6}
m1 =
{
  [1,1] =  1
  [2,1] =  2
  [3,1] =  4
  [4,1] =  3
  [1,2] =  1
  [2,2] =  4
  [3,2] =  8
  [4,2] =  6
}
>> m2 = m1.*0.2
error: binary operator '.*' not implemented for 'cell' by 'scalar' operations
>> m2 = m1^0.2
error: binary operator '^' not implemented for 'cell' by 'scalar' operations

--
Jonathan Camilleri

Mobile (MT): ++356 7982 7113
E-mail: address@hidden
Please consider your environmental responsibility before printing this e-mail.
 
I usually reply to emails within 2 business days.  If it's urgent, give me a call.


reply via email to

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