i need help balancing the inner matrix dimensions of the two sine functions .
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Weisz Thomas
am 15 Jan. 2019
Kommentiert: madhan ravi
am 15 Jan. 2019
function mul_sines(f1,f2)
t=0:0.01:20;
s=sin(f1*t)*sin(f2*t+pi);
plot(t,s)
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 15 Jan. 2019
Bearbeitet: madhan ravi
am 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
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!