sine wave, voltage vs time
20 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Generate a plot of a sine wave having a 1 V amplitude and period of 0.01 seconds. voltage vs time. similar to picture.
currentky have: it does not plot as a voltage vs time.
x = linspace(0.01, 2*pi, 1500);
period = pi/4;
y = 1* sin(2 * pi * x / period);
plot(x, y, 'b-', 'LineWidth', 2);
xlabel('x', 'FontSize', 20);
ylabel('y', 'FontSize', 20);
title('y vs. x', 'FontSize', 20);
grid on;
set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);
Risposte (2)
Walter Roberson
il 13 Feb 2020
xlabel('time (s)', 'FontSize', 20)
ylabel('voltage (V)', 'FontSize', 20)
title('Voltage vs time', 'FontSize', 20)
Now it plots voltage versus time.
5 Commenti
Walter Roberson
il 14 Feb 2020
What does my hint suggest to you?
How many full large periods does the signal have? Given the time period, what is the formula for a signal that behaves just that way?
How many small periods does the signal have? Given the time period, what is the formula for a signal that behaves just that way, as if it were not overlayed on a different signal?
Now how can you combine the two formulas ?
Vedere anche
Categorie
Scopri di più su Spectral Measurements in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!