Exporting sampled data from figure to matlab.
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello there,
After sampling a sinusoid signal at a given sampling frequency,i want to export range of sample values for any time range from the sampled sinusoid to matlab for further computation.Kindly help me with the program/code to do the same.
댓글 수: 5
Fangjun Jiang
2022년 4월 4일
Users look for questions for ansers. If it is a different question, ask a separate question.
채택된 답변
Fangjun Jiang
2022년 4월 1일
편집: Fangjun Jiang
2022년 4월 1일
t=0:0.01:10
SinCurve=plot(t,sin(t));
XData=SinCurve.XData;
YData=SinCurve.YData;
NewX=resample(XData,5,3);
If you only have a figure, you can find the line
MyCurve=findobj(FigureHandle,'Type','Line')
댓글 수: 6
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Measurements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!