Outputting values over time for many times

I am running a simulation for n timesteps. The final output after n timesteps generate an electric field. I want to output my values for a particular point in my FDTD grid for every time step between 1 and n. I can output the values for individual timesteps with one line of code as follows if t==12 ez_scat12=ez_scat; elseif t==32 ez_scat32=ez_scat;
end
This give me the output for the entire grid at t=12 and t=32 but what I want is to automate the output from t=1....n where I take 1 value for the point of observation.

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 15 Aug. 2012

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by