User Tools

Site Tools


supp:octave:contrib:multiplication:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
supp:octave:contrib:multiplication:start [2018/08/25 14:19] – created adminsupp:octave:contrib:multiplication:start [2018/08/25 14:25] (current) admin
Line 1: Line 1:
 ====== Different Types of Multiplication in Matlab/Octave ====== ====== Different Types of Multiplication in Matlab/Octave ======
  
-<file matlab octave_multiplications_V001.m>+<file matlab octave_multiplications_V002.m>
  
 % Different types of multiplications in Octave/Matlab % Different types of multiplications in Octave/Matlab
 % 2015-04-13, RB % 2015-04-13, RB
  
-= [10 20 30 row vector += [1 2 3]   column vector 
-= [1 2 3    row vector += [10 20 30]column vector 
-x         % column vector, transposed+y         % row vector, transposed
  
-s = y*x         % scalar product, left row, right column+s = y*x         % scalar product, left row, right column, result type is scalar
  
 C = x*y         % Cartesian product, matrix with all possible combinations C = x*y         % Cartesian product, matrix with all possible combinations
  
-y2 = y.*y       % element-wise multiplication, result is row vector +y2 = y.*y       % element-wise multiplication, result type is row vector 
-x2 = x.*x       % element-wise multiplication, result is column vector +x2 = x.*x       % element-wise multiplication, result type is column vector 
-z  = x.*y'      % element-wise multiplication, result is row vector+z  = x.*y'      % element-wise multiplication, result type is column vector
  
  
 </file> </file>
  
supp/octave/contrib/multiplication/start.1535206764.txt.gz · Last modified: 2018/08/25 14:19 by admin