Filter löschen
Filter löschen

simple for loop for 6 hourly timestep.

1 Ansicht (letzte 30 Tage)
ektara
ektara am 19 Nov. 2013
Bearbeitet: The Matlab Spot am 19 Nov. 2013
How can I create matlab code for following simple logic?
for single day, 6hrly data, there are 4 time step.
no_of_timestep=4;
0hr 6hr 12hr 18hr x1 x2 x3 x4
x1=x1, x2=x2-x1, x3=x3-x2, x4=x4-x3,
Thanks.
Kind regards.
  1 Kommentar
The Matlab Spot
The Matlab Spot am 19 Nov. 2013
Bearbeitet: The Matlab Spot am 19 Nov. 2013
do you mean creating possible values for x
x = [0:6:18];

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by