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:59] – [Higher dimensions] mithatmatlab:introduction_to_matlab [2019/04/26 22:00] – [Matrix operations] mithat
Line 111: Line 111:
  
 ===== Matrix operations ===== ===== Matrix operations =====
-Assume ''a'' and ''b'' are matrices and num is a scalar. 
  
 <code matlab> <code matlab>
-r = num * a;  % scalar multiplication+r = 1.1 * a;  % scalar multiplication
 r = a * b;    % matrix multiplication r = a * b;    % matrix multiplication
 r = a .* b;   % elementwise multiplication r = a .* b;   % elementwise multiplication
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