how do i plot sin(2pi*3t) * sin(2pi*15t)

1 Ansicht (letzte 30 Tage)
Jesus Moran
Jesus Moran am 12 Mär. 2019
Beantwortet: David Goodmanson am 12 Mär. 2019
how do i plot sin(2pi*3t) * sin(2pi*15t)?
Ive tried and got this:
y=sin(2*pi*3*t)*sin(2*pi*15*t);
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in
the second matrix. To perform elementwise multiplication, use '.*'.
>> y=sin(2*pi*3*t.)*sin(2*pi*15*t.);
y=sin(2*pi*3*t.)*sin(2*pi*15*t.);
Error: Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched
delimiters.

Antworten (1)

David Goodmanson
David Goodmanson am 12 Mär. 2019
Hi Jesus,
what they are saying is
% .* for element-by-element multiplication
y=sin(2*pi*3*t).*sin(2*pi*15*t);

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by