Community Profile

photo

Sneham Shrikant Vaidya


Last seen: 3 years ago Active since 2020

Statistics

  • First Answer

View badges

Content Feed

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 ...

3 years ago | 2

Answered
Given a Matrix A, create a row vector of 1s that has 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