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