How can I keep peak data

조회 수: 2 (최근 30일)
Phudit Kanittasut
Phudit Kanittasut 2021년 2월 27일
댓글: KALYAN ACHARJYA 2021년 3월 1일
How can I keep the blue dot data into variable to use it on other step?
Thx for all answer
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 27일
How can I keep the blue dot data into variable to use it on other step?
The pks variable is already there, you can use that variable in the preceding section of the code.
Do you want to store in the computer?
Phudit Kanittasut
Phudit Kanittasut 2021년 2월 27일
I want to use it in other function . So I can write pks to call the dot data right? and yes i want to store it

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

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 27일
편집: KALYAN ACHARJYA 2021년 2월 27일
First case:
The data is already there (store in the workspace, variable named as pks). You can use the data in proceeding spart of the code (Same script)
Just type pks in the command window, you can see it's values, it may be 1 dimentional array data
Second case:
If you want do save the array in computer for future reference, you can do that multiple ways
dlmwrite('pks_data.txt',pks); % Save in text file (Same Working Directory)
Or save in excel or any other file format (including text), please follow the link
Third Case:
Other function: Declare as global variable
Hope it Helps!
  댓글 수: 4
Phudit Kanittasut
Phudit Kanittasut 2021년 2월 28일
And last question how can I plot the pks data that I save on another script
KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 3월 1일
Load the pks text file (from the save folder), use readmatrix
pks_data=readmatrix('filename.txt')
plot(pks_data)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by