Community Profile

photo

Etan Cole


Active since 2014

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How to use multiple outputs from function
function[x,y]=rowcolum(a,b) x=max(sum(a,2)); y=min(sum(b,1)); end how to write a code that will sum x+y in main scri...

9 years ago | 2 answers | 0

2

answers

Question


find all elements that can be devided with 5
i need to write function that takes one matrix and find all elements can be devided with 5 and replaces them with 5. in c++ for...

9 years ago | 1 answer | 0

1

answer

Question


I have a code but now sure how it works please help
[C,I]=max(sum(a,2)); can some body explain how variables C and I change in 3x3 matrix. thanks in advance

9 years ago | 1 answer | 0

1

answer

Answered
Max value of row in matrix and creating new matrix
i got it working like this. thanks for the help [C,I]=max(sum(a,2)); [C1,I1]=max(sum(b,2)); rezultat=[a(I,:);b(I1,:)];

9 years ago | 0

Question


Max value of row in matrix and creating new matrix
I want something like this matrixa=[12 33 44;26 59 14;15 99 54] matrixb=[26 89 95;23 54 12;2 54 43] and to get output like...

9 years ago | 2 answers | 0

2

answers