RMSE | Invalid Characters
1 回表示 (過去 30 日間)
古いコメントを表示
Hi
I am not sure, why it tell me the below has invalid characters.
function r = rmse(data,k)
r = sqrt(sum((data(:)-k(:)).^2)/numel(data))
end
採用された回答
Walter Roberson
2018 年 5 月 7 日
Although you cannot see it, after the final bracket on the second line, and before the linefeed for that line, there is a character which in hex is 'feff', which is http://www.fileformat.info/info/unicode/char/FEFF/index.htm "Zero width no-break space"
It also happens to be the byte pair that would be used for UTF16 to indicate "Big Endian" byte order mark (BOM). But Zero Width No-Break Space is probably what happened to you rather than BOM.
その他の回答 (1 件)
Yuvaraj Venkataswamy
2018 年 5 月 7 日
編集済み: Walter Roberson
2018 年 5 月 7 日
function r = RMSE(data,k)
Error=(data-k);
Squared_Error=Error.^2 ;
MSE=mean(Squared_Error);
r = sqrt(MSE);
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Large Files and Big Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!