Write a program that creates a vector, v, containing the absolute value of the difference between the maximum and minimum values in each row of A. A =[66 94 75 18

回答(1 个)

A =[66 94 75 18
4 68 40 71
85 76 66 4] ;
iwant = max(A,[],2)-min(A,[],2)
iwant = 3×1
76 67 81

类别

帮助中心File Exchange 中查找有关 Logical 的更多信息

产品

版本

R2018a

标签

Community Treasure Hunt

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

Start Hunting!

Translated by