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

1 次查看(过去 30 天)
function mul_sines(f1,f2)
t=0:0.01:20;
s=sin(f1*t)*sin(f2*t+pi);
plot(t,s)

采纳的回答

madhan ravi
madhan ravi 2019-1-15
编辑:madhan ravi 2019-1-15
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by