Feeds
質問
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...
約11年 前 | 2 件の回答 | 0
2
回答質問
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...
約11年 前 | 1 件の回答 | 0
1
回答質問
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
11年以上 前 | 1 件の回答 | 0
1
回答回答済み
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,:)];
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,:)];
11年以上 前 | 0
質問
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...
11年以上 前 | 2 件の回答 | 0
