Antworten (1)

Walter Roberson
Walter Roberson am 12 Jan. 2021

0 Stimmen

x = sort(rand(1,10));
y = rand(1,10);
stem(x, y)

2 Kommentare

Muhammad Fauzan
Muhammad Fauzan am 12 Jan. 2021
If this is the case x(t)u(1-t):
whats the solution?
u = @(t) (t>=0);
x = sort(rand(1,10)*5-2);
y = rand(1,10);
stem(x, y)
hold on
y2 = y .* u(1-x);
stem(x, y2, 'r')
hold off

Melden Sie sich an, um zu kommentieren.

Produkte

Version

R2014a

Gefragt:

am 12 Jan. 2021

Kommentiert:

am 12 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by