to find maximum for a particular row.

2 vues (au cours des 30 derniers jours)
Prajakta Shende
Prajakta Shende le 2 Mar 2012
if i want to find max of a particular row in a 2-d matrix say c.
then will this snip of code work:
for i=1:row
output(i,3)=max(c(i,:));
end

Réponses (1)

Walter Roberson
Walter Roberson le 2 Mar 2012
Yes, but that would find the maximum of a number of other rows along the way.
max(c(row,:))

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by