Transforming workspace into table using script in MATLAB
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mounira
el 19 de Dic. de 2023
Comentada: Stephen23
el 20 de Dic. de 2023
Hello,
so I have a model in simulink Matlab, and there is a block " To workspace", that gives a data almost 15000 do the workspace, they are puttin in a atable, so i want to use these data in a script in matlab, so how can i do that?
thanks in advance
0 comentarios
Respuesta aceptada
Rik
el 19 de Dic. de 2023
Since it is a variable in the main workspace, it is already available in scripts.
However, you should not use scripts for serious work. Use functions instead. How you can get started with functions is one of the topics in the Onramp tutorial (which is provided for free by Mathworks).
2 comentarios
Stephen23
el 20 de Dic. de 2023
"but when i copy the data and paste it in command to save it in another variable"
Do not copy-and-paste data.
What exactly prevents you from calling a function with that array?
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos 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!