Why do I get the error "Undefined function or variable"?
Show older comments
when i enter this command
[A1 c]=averageValue(R,ps,pt,alpha,rs,cs);
A=[ ]
i face the error.
Undefined function or variable"
1 Comment
Torsten
on 15 Jun 2022
Did you give senseful values to R,ps,pt,alpha,rs,cs ?
Do you have a function file named "averageValue.m" in your working directory ?
Answers (1)
Image Analyst
on 15 Jun 2022
0 votes
Not sure why taht error message is confusing but it's saying that one or more of the variables R,ps,pt,alpha,rs,cs has not been assigned yet. Or the function averageValue has not been defined in your code and is not in any m-file on the search path.
Categories
Find more on File Operations 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!