Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Generating a third function from two existing functions

1 回表示 (過去 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