Hi I am very new to the MatLab software, I have a vector size 1x5234400. For the recording software I am using, every 200 indices equates to 1 second, and I am trying to plot the time against the given values of the vector, but currently have the indices plotted against the given values of the vector. How can I go about creating a vector, using my conversion, to plot time against my values?
Thank you

 채택된 답변

Honglei Chen
Honglei Chen 2014년 9월 12일
편집: Honglei Chen 2014년 9월 12일

1 개 추천

This means your sampling rate is 200 Hz, so you can construct your time vector as
fs = 200;
t = (0:numel(x)-1)/fs;
then just do
plot(t,x)
assuming x is your signal

댓글 수: 2

Nick
Nick 2014년 9월 12일
thank you so much!
Srinivasulu Avvaru
Srinivasulu Avvaru 2019년 5월 14일
If we want to plot the above signal with x_axis as standard time. What to do

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Axis Labels에 대해 자세히 알아보기

태그

질문:

2014년 9월 12일

댓글:

2019년 5월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by