how to call a private function in private function?
古いコメントを表示
APP DESIGNER methods (Access = private)
Inside the private function is the following statement to call another private function, ECEFtoECI
[B] = ECEFtoECI(app, A);
%When running, an error message is displayed indicating that the variable "app" cannot be recognized.
[B] = ECEFtoECI(JD(i), A);
%If this is the case, an error message is displayed indicating that ECEFtoECI cannot be found
3 件のコメント
chrisw23
2023 年 3 月 30 日
function definition
function [B] = ECEFtoECI(app, A) % app as default first arg
...
end
function call (leading app.*)
[B] = app.ECEFtoECI(A)
Lv
2023 年 3 月 30 日
chrisw23
2023 年 4 月 5 日
The calling function has to have app as an argument .
function callerOfECEFtoECI(app,others)
ret = app.ECEFtoECI()
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Construct and Work with Object Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!