Error while excuting script in project - stellar motion
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
not understaing what the error in this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1766804/image.png)
1 Commento
Shivam
il 5 Set 2024
Probably, clear the xlabel from workspace if you have previously set something like, xlabel = 'Wavelength' .
Risposte (1)
Suraj Kumar
il 5 Set 2024
Modificato: Suraj Kumar
il 5 Set 2024
The error message that you are encountering in MATLAB typically arises when there's a conflict between a variable and a function name.
You can check if a variable named 'xlabel' exists or not in the workspace by using the 'which' function.
Then, you can try clearing the variable from the workspace by using the 'clear' function before setting the xlabel.
plot(lambda,s,".-")
clear xlabel
xlabel("Wavelength")
ylabel("Intensity")
Hope this works !
0 Commenti
Vedere anche
Categorie
Scopri di più su Application Deployment in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!