photo

Sneham Shrikant Vaidya


Last seen: 3 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • First Answer

View badges

Feeds

View by

Answered
if-statement with conditions.
function out = picker(condition,in1,in2) if condition == 1; out = in1; else out = in2; end \\try this above ...

4 years ago | 2

Answered
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 ago | 0