Is there a right order for input variables in a function?
Show older comments
Good day everyone.
I have written a function that is called from the main program and the function input variables are obtained from the main program. But I observed that the input variables values are mixed up. For example, if the values are a=3; b=9; c=-1; in the main program, these values are mixed up as a=-1; b=3; c=9 or similar thing. Consequently, my program is not running. How do I make the function see the input variables correctly as it is in the main program?
Thanks so much
1 Comment
ojonugwa adukwu
on 7 Jan 2020
Accepted Answer
More Answers (0)
Categories
Find more on Variables in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!