diff --git a/results.m b/results.m index bfcbc49..d4d8144 100644 --- a/results.m +++ b/results.m @@ -36,4 +36,12 @@ legend("dTemp_{soll}","dTemp_{ist}","dTemp_{cmd}") subplot(3,1,3) plot(time, heater_power); grid legend("Power_{Heater}") + +# Write as wave +f = filter([0.01], [1 -0.99], tc_temp_ist); +audiowrite ("/home/jens/tc_temp_ist.wav", tc_temp_ist-f, 8000) + +f = filter([0.01], [1 -0.99], tc_dtemp_ist); +audiowrite ("/home/jens/tc_dtemp_ist.wav", tc_dtemp_ist-f, 8000) + endfunction