cftool when selecting data

1 回表示 (過去 30 日間)
mohammad mehio
mohammad mehio 2022 年 4 月 20 日
コメント済み: mohammad mehio 2022 年 4 月 21 日
I have flex sensor signal and i want to remodel it to get features through cftool
I load the file but when i enter to choose the data inputs, my only choice is one coordinate which is x
what should I do to have 2 coordinates
this is the code
clear all; close all;
x = load ('patient 5.txt')
plot(x);
cftool
the file is a matrix of 1x10000 double
I think what I should do is to select x as time and y as flex sensor signal after I load the txt
but how should I do it?

採用された回答

Walter Roberson
Walter Roberson 2022 年 4 月 20 日
Fs = 4*1000; %Hz -- put in real data
t = (0 : length(x) - 1) / Fs;
cftool(t, x)
  1 件のコメント
mohammad mehio
mohammad mehio 2022 年 4 月 21 日
I have a question, what is Fs
and t is the time?

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by