how to use this symbol in matlab?? ±
3 ビュー (過去 30 日間)
古いコメントを表示
I have a if loop where i need to check the condition.The loop is something like this:
if(tht(1)==thf(1))
S='Orginal Note';
disp(S);
else
S = 'Fake Note';
disp(S);
end
Inside that if loop i want to place that ±. How can i do this?? For example like:
if(tht(10)==thf(10±5))
How it can be done??
0 件のコメント
採用された回答
James Tursa
2015 年 6 月 2 日
Did you mean a simple test for two different values?
if( tht(10)==thf(10-5) || tht(10)==thf(10+5) )
2 件のコメント
James Tursa
2015 年 6 月 2 日
If you are asking if ± is an allowed operator in MATLAB, the answer is no.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!