how to find maximum values of two numbers present in a structure

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 21 de Dic. de 2013
Editada: Azzi Abdelmalek el 21 de Dic. de 2013
data=struct('a',{8 5}) % Example
out=max([data.a])

1 comentario

The above is correct and is for a structure array in which the field "a" of each element has one or more values; the number of values along the rows can vary with the above code, but the number of rows must be consistent with that code.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by