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)
댓글 수: 0
채택된 답변
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개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!