Effacer les filtres
Effacer les filtres

Using structure in loop with different fields

2 vues (au cours des 30 derniers jours)
naman
naman le 13 Juin 2015
Commenté : Azzi Abdelmalek le 13 Juin 2015
Hi
I have two loops
for i = 1:m
for j = 1:n
hh = call_some_function
end
end
and hh is a structure with three different fields. I want to use hh for all i and j so that I can use it somewhere. How can I do it ?

Réponse acceptée

Adam
Adam le 13 Juin 2015
hh(i,j) = call_some_function( i, j )

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by