How can I keep peak data
1 次查看(过去 30 天)
显示 更早的评论
How can I keep the blue dot data into variable to use it on other step?
Thx for all answer
2 个评论
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?
采纳的回答
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 个评论
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 Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!