How to find a value at a certain point/time slot?

35 ビュー (過去 30 日間)
Jan Ali
Jan Ali 2021 年 5 月 18 日
編集済み: Jan Ali 2021 年 5 月 19 日
Hello everyone!
Can anyone help me with finding the value at a specific point/time? For exp. I have a signal to be analyzed, but I need to find the value for exp. at 7 s (total length is 10 s).
Thanks in advance,
  1 件のコメント
KSSV
KSSV 2021 年 5 月 18 日
Your question is not clear.

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

採用された回答

KSSV
KSSV 2021 年 5 月 18 日
t = 0:0.1:10 ;
y = exp(t) ;
ti = 7 ;
yi = interp1(t,y,ti) ;
[ti yi]
  1 件のコメント
Jan Ali
Jan Ali 2021 年 5 月 19 日
編集済み: Jan Ali 2021 年 5 月 19 日
Thanks a lot for the answer. This is very clear and easy example. I meant this, for a long signal, wanted to know a value at a certain time. F.exp. for a function or vector like sin(x) what the value would be at 7 s.
Now I want to try to find max, mean or median at a time interval, f.exp. the max value of x at 5 - 7 s.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by