matlab:introduction_to_matlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
matlab:introduction_to_matlab [2019/04/26 21:59] – [Higher dimensions] mithat | matlab:introduction_to_matlab [2019/04/26 22:00] – [Matrix operations] mithat | ||
---|---|---|---|
Line 111: | Line 111: | ||
===== Matrix operations ===== | ===== Matrix operations ===== | ||
- | Assume '' | ||
<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