Exporting sampled data from figure to matlab.
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Raashid Hassan
am 31 Mär. 2022
Kommentiert: Fangjun Jiang
am 4 Apr. 2022
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 Kommentare
Fangjun Jiang
am 4 Apr. 2022
Users look for questions for ansers. If it is a different question, ask a separate question.
Akzeptierte Antwort
Fangjun Jiang
am 1 Apr. 2022
Bearbeitet: Fangjun Jiang
am 1 Apr. 2022
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!