Info

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

Function calling problem

1 回表示 (過去 30 日間)
Andy
Andy 2011 年 9 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i am trying to call a function from another function. the function i am trying to call is named alignment_ladder_arson. the code i used to call the alignment_ladder_arson function is:
alignment_ladder_arson( directory, answer(1), answer(2))
where directory is a string and answer is 2 by 1 vector.
the following is the first line of the alignment_ladder_arson function:
function [outputdir]= alignment_ladder_arson (inputdatadir, highthresh, lowthresh )
can anyone see what is wrong? because the code doesnt run, the error message says that directory and lowthresh/highthres is undefined, but it is clearly defined in the function that i am calling from. Thanks
  1 件のコメント
per isakson
per isakson 2011 年 9 月 7 日
The code you describe is correct - as I read your description. However, the code you test with Matlab is not. Please edit your question and the include the code (use Markup), which causes the error - and the error message.

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by