Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Generating a third function from two existing functions

조회 수: 2 (최근 30일)
Amy
Amy 2012년 3월 26일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi All,
I'm having trouble with a pretty basic question here. I have looked at prior answers ( <http://www.mathworks.com/support/solutions/en/data/1-QLCPT/index.html?product=SL&solution=1-QLCPT> and other searches) but all the given code solutions do not seem to be a working solution here.
So here's where I am. I have created two functions:
y1=1+0.1*cos(2*pi*100.02*t)
y2=1+cos(2*pi*100*t)
Done some analysis with 'fft' and now I would now like to create the following function to continue on:
y3=y1*y2
How can I do this?
Thank you so much!

답변 (1개)

Jonathan Sullivan
Jonathan Sullivan 2012년 3월 26일
t = linspace(0,10,1e5);
y1=1+0.1*cos(2*pi*100.02*t);
y2=1+cos(2*pi*100*t);
y3=y1.*y2;

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by