フィルターのクリア

Save data X over Y

1 回表示 (過去 30 日間)
Matthias Bach
Matthias Bach 2015 年 9 月 4 日
回答済み: Stefan Karlsson 2015 年 9 月 4 日
Hey there, quick question:
I have two time-dependent datasets (1000x1 double). Let's call them X and Y. Now I can easily use plot(Y,X) to see how X changes over Y. But how do I save this into a new variable?

回答 (2 件)

Lebarbenchon Romain
Lebarbenchon Romain 2015 年 9 月 4 日
You can save data in a .mat file by using the following commands :
save(your_mat_file,'X','Y');

Stefan Karlsson
Stefan Karlsson 2015 年 9 月 4 日
Poorly asked question. Do you get 2 new X and Y matrices by regular intervals, or is time-dependency something represented by the index of X and Y? Does the Matrices then grow, or are they static. what do you want to save into a new variable, and should this be in memory or as a file.
In general, no matter what your specific problem is, especially with time-varying, multi-dim data, Matlab can be tricky to use. May I recommend you check out this submission, as it may hold your answers:
best of luck

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by