Create variable in workspace

5 ビュー (過去 30 日間)
Sadanand
Sadanand 2011 年 7 月 8 日
I am beginner in Matlab. I want to create variable and its value in matlab workspace through matlab script. I will call that function present in the script with parameters name and value. I want this name variable to be created in matlab workspace with value assigned to it. Parameters will be string and double array. Any help would be highly appreciated. Thanks.

採用された回答

Paulo Silva
Paulo Silva 2011 年 7 月 8 日
function MakeMyVar(VarName,VarValue)
assignin('base',VarName,VarValue)
end
  1 件のコメント
Sadanand
Sadanand 2011 年 7 月 8 日
Thnx bro..

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by