Effacer les filtres
Effacer les filtres

i need help balancing the inner matrix dimensions of the two sine functions .

1 vue (au cours des 30 derniers jours)
function mul_sines(f1,f2)
t=0:0.01:20;
s=sin(f1*t)*sin(f2*t+pi);
plot(t,s)

Réponse acceptée

madhan ravi
madhan ravi le 15 Jan 2019
Modifié(e) : madhan ravi le 15 Jan 2019
mul_sines(50,45) % function call
% f1 ---^^ ^^----- f2
function mul_sines(f1,f2) % function definition
t=0:0.01:20;
s=sin(f1*t).*sin(f2*t+pi);
% ^---- missed dot
plot(t,s)
end

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Produits


Version

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by