Why to I get "Unrecognized function or variable '1' ?

1 回表示 (過去 30 日間)
Tom Cipollone
Tom Cipollone 2021 年 9 月 17 日
コメント済み: Tom Cipollone 2021 年 9 月 20 日
FT= 1./sqrt(1+w.^2);
The above causes the error.
I admit that it has been a number of years since I used matlab and the version that I have is very old (R2008 on Win7) but this seems like it should be fairly simple to decode.
I had been looking at materials that described matlab dot indexing and I am not sure that I am looking in the right place.
So, how is it that matlab is not recognizing "1" or is considering it a function or variable. I intend it to just be a number.
Thank You
Tom
  1 件のコメント
Image Analyst
Image Analyst 2021 年 9 月 18 日
Copy and paste the full exact error - ALL the red text, not just part of it. And actually copy it, don't just retype it here. It's probably a lower case L or upper case i.

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

回答 (1 件)

VBBV
VBBV 2021 年 9 月 17 日
Could you check if it's 1 or lower case alphabet l used as variable in your script. Both appear same in Matlab scripts and hard to distinguish.

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by