How can i sweep over a variable that belongs to a structure

1 view (last 30 days)
i have a variable in a structure in matlab e.g. EQ.FFE
FFE is the number i need to sweep like FFE=1:2:21.
I need to create a "for" loop in the code for that. How can i do it? it seem that syntax
"for FFE=1:7" or "for EQ.FFE=1:7" do not work

Answers (1)

Walter Roberson
Walter Roberson on 27 Jun 2015
for FFE = 1:2:21
EQ.FFE = FFE;
......
end

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!