saving a data

1 回表示 (過去 30 日間)
FIR
FIR 2012 年 3 月 29 日
I havea data as
g =
[1x4 double]
[1x5 double]
[1x4 double]
[1x4 double]
[1x4 double]
[1x5 double]
please tell how to the values in each and i want to store those values in G

採用された回答

Jan
Jan 2012 年 3 月 29 日
FIR, please, you have written over 100 questions in this forum. You should have learned already that it is impossible to answer "tell how to the values in each". There is no chance that we guess the problems you have with storing those values in G. What about:
G = g;
Is g a cell or is the shown block a copy from a text file?
I do not see a connection between the posted information and the subject "saving a data".
Please, FIR, be more careful with your questions. Reading the current message is a waste of the time of all, who want to help voluntarily.
  1 件のコメント
FIR
FIR 2012 年 3 月 29 日
in g when i view in variable editor i have
[1,2,3,8],like these i have for values in g
i can view these values in variable editor and i know how to display it for ex
for i=1:length(g)
disp({g})
end
these values are displayed in command window ,now i want to save these variables in G

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2012 年 3 月 29 日
I agree complete with Jan. So, tell us why did G=g not work. All the vectors inside your individual cells are a different size so it's not possible to stack them all into a 2D numerical display (unless you want to pad the smaller arrays so that they are the same size). Do you want to string them all together into a 1 by 26 vector? You must be more explicit so we don't waste time guessing around all the ambiguities in your message.
Also, there is a celldisp() function that you might want to use rather than disp().

カテゴリ

Help Center および File ExchangeWhos についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by