why do i get this error "undefined function"
조회 수: 4 (최근 30일)
이전 댓글 표시
Undefined function or variable 'RaR'.
Error in Untitled2>calculate_roughness_L1A (line 56)
rough_param(:,1)=RaR;
Error in Untitled2 (line 41)
[rough_param]=calculate_roughness_L1A(ca1);
댓글 수: 6
답변 (1개)
Adam Danz
2020년 4월 22일
RaR could be a variable or a function, we don't know and neither does Matlab but you probably know whether it should be a function or a variable.
Either way, it's not defined. If I ask you A=5, A+B = ?? you couldn't answer it because you don't know what B is.
if RaR is a variable, give it a value.
RaR = [whatever];
If RaR is a function saved to an m-file, make sure the m-file is on your matlab path. See
doc addpath
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!