User Tools

Site Tools


matlab:introduction_to_matlab

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
matlab:introduction_to_matlab [2019/04/26 21:52] – [Comments] mithatmatlab:introduction_to_matlab [2019/04/26 21:58] – [Matrix operations] mithat
Line 110: Line 110:
  
 ===== Matrix operations ===== ===== Matrix operations =====
 +Assume ''a'' and ''b'' are matrices and num is a scalar.
  
 <code matlab> <code matlab>
-matrix multiplication +r = num * a;  scalar multiplication 
-r = a * b; +r = a * b;    matrix multiplication 
- +r = a .* b;   % elementwise multiplication 
-elementwise multiplication +r = a ./ b;   % elementwise division
-r = a .* b; +
- +
-% elementwise division +
-r = a ./ b;+
 </code> </code>
  
matlab/introduction_to_matlab.txt · Last modified: 2021/12/07 19:11 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki