how do i write the code for following expression: y(n)=ramp(n)+x(n+5)+ramp(-n)

6 件のコメント

Jan
Jan 2015 年 11 月 1 日
What is "ramp()"? A variable or a function?
Star Strider
Star Strider 2015 年 11 月 1 日
Ramp is a Simulink block. I’m not certain that it has a function representation.
@saranya s — What do you want to do? What is ‘n’ and what do you want ‘y(n)’ (apparently a function) to produce?
saranya s
saranya s 2015 年 11 月 4 日
</matlabcentral/answers/uploaded_files/39623/output.jpg> I want to get the exact matlab output of below mentioned image.. can you please upload the matlab coding for this one?
saranya s
saranya s 2015 年 11 月 4 日
Image Analyst
Image Analyst 2015 年 11 月 4 日
How many elements are between 0 and 5 and between 8 and 15? How many do you want to have? Have you simply tried linspace() or the colon operator?????
saranya s
saranya s 2015 年 11 月 5 日
Thanku so much for ur reply sir.. i tried in linespace(),i got the answer too.. but i want to make the expression or some equation to get this output.the x and y axis,elements value should be like 1,2,3...

サインインしてコメントする。

 採用された回答

Image Analyst
Image Analyst 2015 年 11 月 1 日

0 投票

Would you like to use the sawtooth() function in the Signal Processing Toolbox?

3 件のコメント

saranya s
saranya s 2015 年 11 月 5 日
i wanna produce ramp signal by using either ramp comment or r(t)..is it possible?
Image Analyst
Image Analyst 2015 年 11 月 5 日
I assume you mean command rather than comment.
I don't have the ramp() command/function. You can use linspace
y = linspace(startingValue, endingValue, numPoints);
saranya s
saranya s 2015 年 11 月 6 日
thanku sir

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeAudio Processing Algorithm Design についてさらに検索

質問済み:

2015 年 11 月 1 日

コメント済み:

2015 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by