Sneham Shrikant Vaidya
Followers: 0 Following: 0
Feeds
已回答
if-statement with conditions.
function out = picker(condition,in1,in2) if condition == 1; out = in1; else out = in2; end \\try this above ...
if-statement with conditions.
function out = picker(condition,in1,in2) if condition == 1; out = in1; else out = in2; end \\try this above ...
4 years 前 | 2
已回答
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
A = [1:5; 6:10; 11:15; 16:20]; A x = [1 1 1 1 ] y = [1;1;1;1;1] z = A*y result =x*z you can also perform this way as we kn...
Given a matrix "A", how to create a row vector of 1s that has the same number of elements as "A" has rows?
A = [1:5; 6:10; 11:15; 16:20]; A x = [1 1 1 1 ] y = [1;1;1;1;1] z = A*y result =x*z you can also perform this way as we kn...
4 years 前 | 0