error message undefined variable best_salt_2
이전 댓글 표시
I cant see that best_salt_2 hasnt got a value in this function I have attached; I get an error saying ''undefined variable best_salt_2''
Can somebody help me? :)
댓글 수: 3
KSSV
2022년 1월 17일
What input you have used to the function?
Naveen Somasundaram
2022년 1월 17일
Hey there, The error you get is probably because you have not set the value i.e initialized variable best_salt_2 before trying to check something on it, for example performning isempty(best_salt_2) on an undefined variable will throw that error.
Can you screenshot the error line and your workspace at that point. I can explain it better then.
PS: try to intend the code so it is readable. It saves a lot of time in debugging.
Muazma Ali
2022년 1월 17일
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!