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

88 visualizzazioni (ultimi 30 giorni)
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 Commento
Stephen23
Stephen23 il 17 Dic 2021
Modificato: Stephen23 il 17 Dic 2021
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

Accedi per commentare.

Risposte (1)

Bjorn Gustavsson
Bjorn Gustavsson il 17 Dic 2021
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

Prodotti


Release

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by