calculations with respect to row vectors
Mostra commenti meno recenti
Dear Sir:
I was using an old version of matlab (I believe matlab 6) at school.
Can you please tell me why matlab is returning data that appears to be in error?
Please examine the *.m code that I have copied and pasted below (delete or insert the semicolon symbol ; to see the values output by matlab):
%Example:
t=[0:5] % t = [ 0 1 2 3 4 5 ]
t=[0:5]/5 % t = [ 0 0.2000 0.4000 0.6000 0.8000 1.0000 ]
% so far, so good everything is logical and rational
% The problem is set forth in the next line below:
t = [0:16383]/125000000 % Column 16384 = 0.13106400000000; This value is not logical
% Verification that a mathematical anomoly is present:
a=16383/125000000 % matlab returns: a = 1.310640000000000e-004
Can you tell me why matlab is returning this value? Also, try this equation below and the anomaly will repeat itself.
b=16383/125000000000;
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Logical in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!