フィルターのクリア

Writing separate variables into 1 variable in workspace

1 回表示 (過去 30 日間)
Gareth Evans
Gareth Evans 2012 年 10 月 10 日
Hello,
Say i have the following variables in the workspace:-
B [Of a size 1x8760] C [Of a size 1x8760] D [Of a size 1x8760]
How would i be able to create a new workspace variable [lets call it weather_input] containing the data above in a matrix where the first row would contain a time input stepping up in 3600 increments [A]. for example [below is meant to be a 4x3 matrix]:-
  • A = 3600 7200 10800;
  • B = B1 B2 B3;
  • C = C1 C2 C3;
  • D = D1 D2 D3;
cheers
  1 件のコメント
Gareth Evans
Gareth Evans 2012 年 10 月 10 日
sorry i should of added by writing a script in the editor if that isn't obvious. I hope someone can point me the right way..(-:

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

採用された回答

Matt Fig
Matt Fig 2012 年 10 月 10 日
編集済み: Matt Fig 2012 年 10 月 10 日
Your question is very confusing. I think you mean something like this:
% These are the given arrays.
A = 1:10;
B = 11:20;
C = 21:30;
Now create a new variable:
E = [A;B;C]
If this is not what you mean, give an example with real matrices we can copy and paste.

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by