フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to check the value of a varriable of a subfunction?

1 回表示 (過去 30 日間)
Shaila parvin
Shaila parvin 2013 年 6 月 24 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I've a function that calls another function. I can debug the program but I can't check the value of any variable of the called function after debugging. It shows me error. How can I do it?

回答 (1 件)

David Sanchez
David Sanchez 2013 年 6 月 24 日
You can send the variable, from the local function, to the base workspace using assignin:
assignin('base', 'my_variable', Value_of_variable)

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by