How generate one signale of this (in picture)

1 view (last 30 days)
hi how are you? please i want to generate one of this four signale ploting in the picture attached. I know how genrate the signale lik sin, cos, sawtooth,...,etc but this signale i don't know how! please help me or tell me how i can genrete it. thank's in advance

Accepted Answer

Image Analyst
Image Analyst on 20 Jul 2014
Pick one of the four signals, say vt1, and assume you have the time values in an array called t. Then plot it:
plot(t, Vt1, 'y-', 'LineWidth', 2);
ylabel('Vt1 (m/sec)', 'FontSize', 16);
xlabel('Time (s)', 'FontSize', 16);
If you want the others, do
hold on;
plot(t, Vt2, 'r-', 'LineWidth', 2);
plot(t, Vt3, 'k-', 'LineWidth', 2);
plot(t, Vt4, 'b-', 'LineWidth', 2);
ylabel('Vt1, Vt2, Vt3 and Vt4 (m/sec)', 'FontSize', 16);
xlabel('Time (s)', 'FontSize', 16);
legend('Vt1', Vt2', 'Vt3', 'Vt4');

More Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 20 Jul 2014
This is a random signal
y=rand(1,10)
plot(y)

Categories

Find more on Signal Generation and Preprocessing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!