Info

此问题已关闭。 请重新打开它进行编辑或回答。

the minimum of some boxes in a row of matrix

1 次查看(过去 30 天)
hello community,
I want to return the minimum of some boxes in a row of matrix .
hepl plzz!
  3 个评论
Imane hammou ouali
Imane hammou ouali 2019-3-15
juste like i have :
int1=1:3
c1=[2 4] % for the frst iteration
int2=1:length(c1)
my Matrix is A=[0 4 0 6;0 3 0 0;0 0 0 0]
i wana return the mimum of A(int1,c1(int2)) and A(int1),c1(int2)) // A(1,2) and A(1,4)that means i wana return (4) in the firts row
for the second iteration int1=2
c1=[2] in this case i'll return just 3 because
for int1=3
c1=[0] int this case all the arrow will be 0
i know it's a little bit complicated but i really need help. thank you in advance

回答(0 个)

此问题已关闭。

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by