hello,I am trying to save a data string and use it later in the program.IS it possible? Any kind of hint would be appreciated. Thaks in advance

1 回表示 (過去 30 日間)
For example,I have a data v=[1 0 0 0]; I want to save it. And then,if v(i)==0,it changes to a number other than 0/1 and becomes v=[1 3 3 3]; and I want to compare the both data.How can I do that?

採用された回答

jlt199
jlt199 2016 年 6 月 22 日
Store a copy of v as oldv before you start your analysis, Now you can compare v at the end of you analysis with oldv using something like intersect
  2 件のコメント
nafila aytija
nafila aytija 2016 年 6 月 22 日
that's exacly what I am asking.How do I save that and recall that later?
jlt199
jlt199 2016 年 6 月 22 日
v = oldv;
% Analyse v here
test = intersect(oldv, v);

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParticle & Nuclear Physics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by