[Help] If and ifelse condition
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Waqar Ali Memon
am 25 Jul. 2019
Kommentiert: Waqar Ali Memon
am 25 Jul. 2019
Hello Everyone,
I have clipped the AC_Data for reference.

I want to define two conditions, if in column 3, value of cell is 0.0, the following rows should be equal to 0 and if 1.0 comes than the value of following cells should be 1.0 until 0.0. it should follow.
But i don't know how to code this. I tried finding empty cells but i don't know how to limit code for above two conditions.
Any help would be appreciated :-)
Regards,
Waqar Ali Memon
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 25 Jul. 2019
load('AC_Data.mat');
T = cell2table(AC);
T.AC3 = str2double(T.AC3);
T_out = fillmissing(T,'previous');
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dynamic System Models 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!