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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!