change Fazit section, adapt exercise script to reflect the changes to

function names
This commit is contained in:
2015-12-01 10:39:26 +01:00
parent da6a3eef44
commit 2241c81d40
3 changed files with 28 additions and 27 deletions

View File

@@ -8,10 +8,10 @@ hold on
for i = 1:length(amplitudes)
for j = 1:length(frequencies)
[x_data, y_data] = calculate_sinewave(frequencies(j), ...
amplitudes(i), t_max, t_step);
plot_sinewave(x_data, y_data, sprintf('freq: %5.2f, ampl: %5.2f',...
frequencies(j), amplitudes(i)))
[x_data, y_data] = sinewave(frequencies(j), ...
amplitudes(i), t_max, t_step);
plotFunction(x_data, y_data, sprintf('freq: %5.2f, ampl: %5.2f',...
frequencies(j), amplitudes(i)))
end
end
legend('show')