Reference to a cleared variable x
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
採用された回答
Image Analyst
2017 年 10 月 1 日
編集済み: Image Analyst
2020 年 3 月 30 日
You used to have x, but now you don't anymore. You cleared it somehow, like by calling the clear() or delete() function. For example, if you have any lines like these inside your function, remove them:
clear all; % Remove this line from inside any function.
clearvars; % Remove this line from inside any function.
clear('x'); % If you have this in your function, remove it.
Can't say much more without seeing your code.
8 件のコメント
Adewale Obaro
2018 年 3 月 16 日
移動済み: Stephen23
2023 年 8 月 11 日
To solve this problem, simply remove "clear all" from the function
Visweshwaran R
2020 年 3 月 30 日
移動済み: Stephen23
2023 年 8 月 11 日
saved my day.Thanks
Ilham Apis
2020 年 10 月 26 日
移動済み: Stephen23
2023 年 8 月 11 日
Thanks
Marco Soto
2021 年 5 月 17 日
移動済み: Stephen23
2023 年 8 月 11 日
Thanks
Ronald Zafra
2022 年 2 月 18 日
移動済み: Stephen23
2023 年 8 月 11 日
Thanks
Thanks
Luigi Frunzo
2023 年 5 月 17 日
移動済み: Stephen23
2023 年 8 月 11 日
Thanks! Thanks a lot I am becaming crazy!!!
Raúl Acuña
2023 年 8 月 10 日
移動済み: Stephen23
2023 年 8 月 11 日
Thanks
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
製品
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
