error in my maths?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
x=data;
inter = (x(:,2))/(4.308e-3);
wave=20*log(10,(inter/0.00002));
I'm getting an error in line 23 - the final line above, and I can't figure out why - the input data is values from an oscilloscope and I'm trying to convert it to SPL, it works when I was just converting from voltage to pascals (second line) so I'm assuming it's something to do with the logarithm?
Any help is really appreciated
0 Kommentare
Antworten (1)
madhan ravi
am 26 Nov. 2018
Bearbeitet: madhan ravi
am 26 Nov. 2018
EDITED
x=data;
inter = (x(:,2))/(4.308e-3);
wave=20*log10(inter/0.00002);
0 Kommentare
Siehe auch
Kategorien
Mehr zu File Operations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!