Sawtooth diagram for automotive use
Mostra commenti meno recenti
Dear readers,
I want to make a sawtooth diagram from an Audi RS6.
I have no idea where to start, I only have read something about the command sawtooth.
Can someone help me? It is very much appreciated!
Risposte (1)
Scott MacKenzie
il 18 Mag 2021
Here's some code to create a sawtooth pattern:
samples = 100; % per cycle
cycles = 5;
peak = 15;
y = linspace(peak,0,samples);
y = repmat(y,1,cycles);
plot(y);

3 Commenti
Helmar Feberwee
il 18 Mag 2021
Scott MacKenzie
il 18 Mag 2021
This if-tree is a bit dizzying. Plus, it can't be right since all the if-conditions are identical and occur in each iteration of the for-loop: n_motor_i(i)>n_Pmax. You need to re-think the logic. Good luck.
Helmar Feberwee
il 19 Mag 2021
Categorie
Scopri di più su Get Started with Signal Processing Toolbox 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!