Info

This question is closed. Reopen it to edit or answer.

Function calling problem

1 view (last 30 days)
Andy
Andy on 7 Sep 2011
Closed: MATLAB Answer Bot on 20 Aug 2021
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 Comment
per isakson
per isakson on 7 Sep 2011
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.

Answers (0)

This question is closed.

Tags

Community Treasure Hunt

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

Start Hunting!