mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-30 06:22:32 +03:00
Merge pull request #744 from ben-eysenbach/patch-1
[matlab/en] Matlab syntax error
This commit is contained in:
commit
8df513c39b
@ -85,7 +85,7 @@ load myFile.mat y % no parentheses, and spaces instead of commas
|
|||||||
% Logicals can be applied to matrices:
|
% Logicals can be applied to matrices:
|
||||||
A > 5
|
A > 5
|
||||||
% for each element, if condition is true, that element is 1 in returned matrix
|
% for each element, if condition is true, that element is 1 in returned matrix
|
||||||
A[ A > 5 ]
|
A( A > 5 )
|
||||||
% returns a vector containing the elements in A for which condition is true
|
% returns a vector containing the elements in A for which condition is true
|
||||||
|
|
||||||
% Strings
|
% Strings
|
||||||
|
Loading…
Reference in New Issue
Block a user