How to plot desired datapoints on a curve?

조회 수: 1(최근 30일)
ekagra gupta
ekagra gupta 2022년 7월 25일
답변: William Rose 2022년 7월 25일
Hello, I have a vector t -> 40000x1 and y -> 40000x1. I wish to plot this data with respect to desired data yhat -> 58x1. How can I do it? Thank you

채택된 답변

William Rose
William Rose 2022년 7월 25일
You must have a vector that (58 x 1), which accompanies yhat (58 x 1). Let us create vectors to use as examples:
that=[1:689:40000]'; %time vector, 58 x 1
yhat=sin(that/2000); %desired data, 58 x 1
Then you may do
Good luck.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by