フィルターのクリア

PLOT 5 seconds of continuous signal

5 ビュー (過去 30 日間)
meghna roy chowdhury
meghna roy chowdhury 2020 年 5 月 4 日
コメント済み: Neilabh Banzal 2020 年 5 月 4 日
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)

回答 (1 件)

Neilabh Banzal
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.
Refer to Access Data in a Table for more details.
  2 件のコメント
meghna roy chowdhury
meghna roy chowdhury 2020 年 5 月 4 日
I get this error.
Also, I want to plot only 5 seconds of the data.
Error in ppg (line 5)
plot(data3(:,1), data3(:,2))
Neilabh Banzal
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 ExchangeAnnotations についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by