PLOT 5 seconds of continuous signal
2 次查看(过去 30 天)
显示 更早的评论
I have a text file containing of a continuous signal 2 columns :
a) Time ranging from 12:35:57 to 16:35:57 (HH:MM:SS)
b) Numeric value
I want to plot 5 seconds
clear all
close all
data3=readtable ('PLETH.txt');
Date_Time = data3(:,1);
datecell=table2array(Date_Time);
load = data3(:,2);
A = table2array(load)
0 个评论
回答(1 个)
Neilabh Banzal
2020-5-4
编辑:Neilabh Banzal
2020-5-4
Hi,
You don't need to convert the table into array.
A simple
plot(data3.x, data3.y);
should work.
Here, x and y are your column labels.
This
plot(data3(:,1), data3(:,2));
should also work just fine.
2 个评论
Neilabh Banzal
2020-5-4
Could you put up the complete code and the data file here?
It's difficult to debug without all the information.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!