필터 지우기
필터 지우기

Create variable in workspace

조회 수: 8 (최근 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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by