error message undefined variable best_salt_2
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Naveen Somasundaram
am 17 Jan. 2022
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.
Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!