Create variable in workspace
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuesta aceptada
Paulo Silva
el 8 de Jul. de 2011
function MakeMyVar(VarName,VarValue)
assignin('base',VarName,VarValue)
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Cell Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!