Programmatically change function input
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Browning
am 6 Jan. 2021
Kommentiert: Alex Browning
am 6 Jan. 2021
Hi, I'm working on a function that will build a synchronized timetable based on a varying number of data streams. The function organizes that data into a cell array, and then feed those cells are fed into the synchronize function.
Here's a chunklet of the code:
for i=1:length(synccell)
catstring=sprintf('synccell{%u}',i);
fncstr=strcat(fncstr,catstring,',');
end
finalstr=strcat(fncstr,"'regular','next','TimeStep',seconds(.05))");
tt=synchronize(finalstr)
writetimetable(tt,'Synchronized.csv');
Obviously, this doesn't work because I can't just use a string as a function input.
What are my options here?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Time Series Events 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!