フィルターのクリア

while implementing the above code, getting error at line 8 & 10 = error is the value assigned to variable might be unsed?

1 回表示 (過去 30 日間)
Hemen Gogoi
Hemen Gogoi 2021 年 5 月 8 日
回答済み: DGM 2021 年 5 月 8 日
while implementing the above code, getting error at line 8 & 10 = error is the value assigned to variable might be unsed. plz give a solution to this problem

回答 (1 件)

DGM
DGM 2021 年 5 月 8 日
3 things:
1: It's not an error, just a warning for guidance. It doesn't prevent the code from being run.
2: It's correct. ep and mu are assigned a value, and then the function exits. The values are never used, nor are any of the output arguments given a value. gather, tout, etc need to be assigned a value. I'm assuming that once this function is done being written, the values assigned to ep and mu will be used to calculate those output arguments. At that point, all the squiggly lines will be gone.
3: In the future, please just paste the code in a formatted block in your post. That way people can run it if they need to, or they can copy/paste sections of it for explanation.

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by