フィルターのクリア

Error while excuting script in project - stellar motion

50 ビュー (過去 30 日間)
Tushar Saratkar
Tushar Saratkar 2024 年 9 月 5 日 8:18
編集済み: Suraj Kumar 2024 年 9 月 5 日 8:45
not understaing what the error in this.
  1 件のコメント
Shivam
Shivam 2024 年 9 月 5 日 8:36
Probably, clear the xlabel from workspace if you have previously set something like, xlabel = 'Wavelength' .

サインインしてコメントする。

回答 (1 件)

Suraj Kumar
Suraj Kumar 2024 年 9 月 5 日 8:44
編集済み: Suraj Kumar 2024 年 9 月 5 日 8:45
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 !

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by