plz anyone solve the following question for me in matlab and reply quick.regards

回答(2 个)

If the scale of X and Y is the same, you could use a "for" loop to go through every element.
for i=1:numel(X)
if X(i) > Y(i)
% Do something
end
end
or you could use the function "gt"
type "help gt" in matlab without quotes for more details

类别

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

提问:

ali
2012-11-5

Community Treasure Hunt

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

Start Hunting!

Translated by