I ma trying to create a plot with matrix having 56 rows and 166 columns which correspond to 56 signals and 166 values. How to plot time series graph
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
how to define the time series for each value using loop
0 Kommentare
Antworten (1)
Image Analyst
am 2 Dez. 2021
Try this, assuming your matrix is called "allSignals":
[rows, columns] = size(allSignals);
for row = 1 : rows
thisSignal = allSignals(row, :); % Get this one row.
plot(thisSignal, '-', 'LineWidth', 2);
hold on;
end
legend
grid on;
caption = sprintf('%d signals, each with %d time points', rows, columns);
title(caption, 'FontSize', 18);
xlabel('Time', 'FontSize', 18);
ylabel('Signal Value', 'FontSize', 18);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Timing and presenting 2D and 3D stimuli 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!