Matlab 2020b "Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters."

112 次查看(过去 30 天)
Hi
i'm working on a university project and i'm doing image processing.
So when i researching on google for my project content, i found some codes and tried but matlab gives an error.
I know error type but i can not found any argumant for this, because i'm new on matlab
Anybody can halp me and gives me advice how can i found updatings for matlab 2020b
Error: Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
Code line: Sn = abs(fft2(noise)).ˆ2;
"^" i think ,this symbol is not useable for matlab 2020b but what symbol is substitute the this symbol for matlab 2020b
  1 个评论
Stephen23
Stephen23 2021-12-17
编辑:Stephen23 2021-12-17
Sn = abs(fft2(noise)).ˆ2;
% ^ invalid character (U+02C6, MODIFIER LETTER CIRCUMFLEX ACCENT)
Sn = abs(fft2(noise)).^2;
% ^ valid character: (U+005E, CIRCUMFLEX ACCENT) from ASCII

请先登录,再进行评论。

回答(1 个)

Bjorn Gustavsson
Bjorn Gustavsson 2021-12-17
It might well be that the "ˆ" symbol have been encoded to some othe character than "^" (I'm completely un-interested in character-sets and the like (as long as I get to use ö and Å in my name and for the length-unit respectivel)). So just try to change whatever the "ˆ" is to the "^" character from your keyboard.
HTH

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by