How can i use the variable in the workspace in a different script

5 Ansichten (letzte 30 Tage)
Luca Beretta
Luca Beretta am 30 Nov. 2021
Beantwortet: Image Analyst am 30 Nov. 2021
How can i use some variables generated by AN other script in the workspace, in a new different script

Antworten (1)

Image Analyst
Image Analyst am 30 Nov. 2021
If they're in the base workspace, the other script should be able to see and use it. Not if it's inside a function though. For that you should pass the values into the function, rather than use assignin().

Community Treasure Hunt

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

Start Hunting!

Translated by