Why do I get the error "Undefined function or variable"?

when i enter this command
[A1 c]=averageValue(R,ps,pt,alpha,rs,cs);
A=[ ]
i face the error.
Undefined function or variable"

댓글 수: 1

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 ?

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2022년 6월 15일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 File Operations에 대해 자세히 알아보기

제품

릴리스

R2017a

태그

질문:

2022년 6월 15일

답변:

2022년 6월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by