division
9 次查看(过去 30 天)
显示 更早的评论
m = 255 n = 52995 when i do error = m/n it gives me 0 but when i write 255/52995 it gives me 0.0048. It is trivial but can anyone please point out where I am going wrong.
1 个评论
David Young
2011-11-27
I don't get that result. Please could you cut and paste the relevant part of your MATLAB session, including your commands and the results, so that we can see what is happening. (Please put a space at the start of each line so that it is formatted.)
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!