Filter löschen
Filter löschen

Exporting sampled data from figure to matlab.

1 Ansicht (letzte 30 Tage)
Raashid Hassan
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
Raashid Hassan
Raashid Hassan am 4 Apr. 2022
Anyways , thank you ! Your help is much appreciable ! Can you please help me with another query : Suppose I have a large array of numbers , about 2807 entries eg A=(....0 3 4 5 7 8 9 5 5 7 8 9 0 4 1 4 5 7 8 .....) Now I wanna compute sum of certain numbers ,eg from 1500th entry to 1901th entry , likewise summation of other ranges ! How can I do that , kindly elaborate !This is required to develop an algorithm!
Fangjun Jiang
Fangjun Jiang am 4 Apr. 2022
Users look for questions for ansers. If it is a different question, ask a separate question.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Fangjun Jiang
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
Raashid Hassan
Raashid Hassan am 4 Apr. 2022
Ex . t1=0:60 t2=60:100 How to plot the two sinusoids on the same axes as a continued single graph?
Fangjun Jiang
Fangjun Jiang am 4 Apr. 2022
This is yet another different question than the original one.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by