Hi all!
I have to define a trapezoidal pulse and then obtain it's frequency
spectrum.
These are the specifications:
The increasing duration is 0.1 us.
The decreasing duration is 0.1 us.
The pulse mean duration is 0.5 us.
The amplitude is a random variable.
______
/ \
/ \
____/ \____
| | | |
0.1us 0.1us
| 0.5us |
How can I do that with matlab?
Thank you all in advance!
Daniel
How to define a trapezoidal pulse in MATLAB
Started by ●April 6, 2007
Reply by ●April 6, 20072007-04-06
On Apr 6, 8:37 am, "Daniel" <dans...@gmail.com> wrote:> Hi all! > I have to define a trapezoidal pulse and then obtain it's frequency > spectrum. > These are the specifications: > The increasing duration is 0.1 us. > The decreasing duration is 0.1 us. > The pulse mean duration is 0.5 us. > The amplitude is a random variable. > ______ > / \ > / \ > ____/ \____ > > | | | | > 0.1us 0.1us > > | 0.5us | > > How can I do that with matlab? > Thank you all in advance! > > DanielDaniel, Such a simple question, which would only require you to obtain extremely minimal familiarity with MATLAB. Are you trying to avoid learning anything at all about MATLAB? Are you in the wrong major? Try putting in a little effort before you ask for help. Dirk
Reply by ●April 6, 20072007-04-06
Daniel wrote:> Hi all! > I have to define a trapezoidal pulse and then obtain it's frequency > spectrum. > These are the specifications: > The increasing duration is 0.1 us. > The decreasing duration is 0.1 us. > The pulse mean duration is 0.5 us. > The amplitude is a random variable. > ______ > / \ > / \ > ____/ \____ > > | | | | > 0.1us 0.1us > > | 0.5us | > > > How can I do that with matlab? > Thank you all in advance!Try again, using spaces only; no tabs. I don't know Matlab, but your problem has an analytical solution. (It is not bandlimited.) Amplitude is irrelevant. Can you see why? Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply by ●April 6, 20072007-04-06
On 6 Apr, 16:54, "dbell" <bellda2...@cox.net> wrote:> Daniel, > > Such a simple question, which would only require you to obtain > extremely minimal familiarity with MATLAB. Are you trying to avoid > learning anything at all about MATLAB? Are you in the wrong major? > Try putting in a little effort before you ask for help.dbell, Thank you very much!! Why answer in this way? Better not to answer!!!! Do you think I'm not reading the Help in this moment? Maybe if someone could give me an example I could learn this thing quickier and then spend the rest of the time in learning in the Matlab Help other things I need. Asking a NG was just a way to start. Maybe a day I'll reply to you in the same way you made with me, for a question that creates troubles in you and that is in my opinion very simple! Sorry if I wasted your time. But now you wasted mine!!
Reply by ●April 6, 20072007-04-06
"Daniel" <dansnam@gmail.com> wrote in news:1175872179.965299.321670 @o5g2000hsb.googlegroups.com:> Asking a NG was just a way to startAsking a NG is a poor way to start. It's a wonderful mechanism after you've put in the effort and get stuck. -- Scott Reverse name to reply
Reply by ●April 6, 20072007-04-06
"Daniel" <dansnam@gmail.com> writes:> On 6 Apr, 16:54, "dbell" <bellda2...@cox.net> wrote: > >> Daniel, >> >> Such a simple question, which would only require you to obtain >> extremely minimal familiarity with MATLAB. Are you trying to avoid >> learning anything at all about MATLAB? Are you in the wrong major? >> Try putting in a little effort before you ask for help. > > dbell, > > Thank you very much!! > Why answer in this way? Better not to answer!!!! > Do you think I'm not reading the Help in this moment? > Maybe if someone could give me an example I could learn this thing > quickier and then spend the rest of the time in learning in the Matlab > Help other things I need. > Asking a NG was just a way to start. Maybe a day I'll reply to you in > the same way you made with me, for a question that creates troubles in > you and that is in my opinion very simple! > Sorry if I wasted your time. But now you wasted mine!!Daniel, No one is trying to be unkind here. The problem, as Dirk intimated, is that spending even 10 minutes with the Matlab help would probably enable you to answer your own questions, and you'd learn a lot more/better in the process. In Matlab, typing "help" at the command line will give you the categories of help available. To begin your task, try "help matlab/ops/braces". You need to define a vector representing your input signal. Then try "help fft" for help on the fft function which translates your input signal to the frequency domain. Then "help plot" for help on plotting the result. Etc., etc - I hope you get the idea. -- % Randy Yates % "My Shangri-la has gone away, fading like %% Fuquay-Varina, NC % the Beatles on 'Hey Jude'" %%% 919-577-9882 % %%%% <yates@ieee.org> % 'Shangri-La', *A New World Record*, ELO http://home.earthlink.net/~yatescr
Reply by ●April 6, 20072007-04-06
Daniel wrote:> On 6 Apr, 16:54, "dbell" <bellda2...@cox.net> wrote: > >> Daniel, >> >> Such a simple question, which would only require you to obtain >> extremely minimal familiarity with MATLAB. Are you trying to avoid >> learning anything at all about MATLAB? Are you in the wrong major? >> Try putting in a little effort before you ask for help. > > dbell, > > Thank you very much!! > Why answer in this way? Better not to answer!!!! > Do you think I'm not reading the Help in this moment? > Maybe if someone could give me an example I could learn this thing > quickier and then spend the rest of the time in learning in the Matlab > Help other things I need. > Asking a NG was just a way to start. Maybe a day I'll reply to you in > the same way you made with me, for a question that creates troubles in > you and that is in my opinion very simple! > Sorry if I wasted your time. But now you wasted mine!!Daniel, Let me begin your education. Matlab is a tool. Like a cabinet maker's kit, it makes doing a job simple and the doing elegant, but it tells the used nothing about how the job should be done. If you don't know (at least in outline) how to solve a problem with pencil and paper and a table or two, Matlab won't help you to solve it. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Reply by ●April 6, 20072007-04-06
On Apr 7, 12:37 am, "Daniel" <dans...@gmail.com> wrote:> Hi all! > I have to define a trapezoidal pulse and then obtain it's frequency > spectrum. > These are the specifications: > The increasing duration is 0.1 us. > The decreasing duration is 0.1 us. > The pulse mean duration is 0.5 us. > The amplitude is a random variable. > ______ > / \ > / \ > ____/ \____ > > | | | | > 0.1us 0.1us > > | 0.5us | > > How can I do that with matlab? > Thank you all in advance! > > DanielI would try the analytic solution. Try sub-dividing the wave-form in sections - you have a pulse in teh middle and what looks like a triangular type of wave at either end. Wang King
Reply by ●April 6, 20072007-04-06
On Apr 6, 12:03 pm, gyansor...@gmail.com wrote:> On Apr 7, 12:37 am, "Daniel" <dans...@gmail.com> wrote: > > > > > > > Hi all! > > I have to define a trapezoidal pulse and then obtain it's frequency > > spectrum. > > These are the specifications: > > The increasing duration is 0.1 us. > > The decreasing duration is 0.1 us. > > The pulse mean duration is 0.5 us. > > The amplitude is a random variable. > > ______ > > / \ > > / \ > > ____/ \____ > > > | | | | > > 0.1us 0.1us > > > | 0.5us | > > > How can I do that with matlab? > > Thank you all in advance! > > > Daniel > > I would try the analytic solution. Try sub-dividing the wave-form in > sections - you have a pulse in teh middle and what looks like a > triangular type of wave at either end. > Wang King- Hide quoted text - > > - Show quoted text -Alternately, could be viewed as the convolution of a short rect pulse and a long rect pulse. Dirk
Reply by ●April 6, 20072007-04-06
dbell wrote:> On Apr 6, 12:03 pm, gyansor...@gmail.com wrote: >> On Apr 7, 12:37 am, "Daniel" <dans...@gmail.com> wrote: >> >> >> >> >> >>> Hi all! >>> I have to define a trapezoidal pulse and then obtain it's frequency >>> spectrum. >>> These are the specifications: >>> The increasing duration is 0.1 us. >>> The decreasing duration is 0.1 us. >>> The pulse mean duration is 0.5 us. >>> The amplitude is a random variable. >>> ______ >>> / \ >>> / \ >>> ____/ \____ >>> | | | | >>> 0.1us 0.1us >>> | 0.5us | >>> How can I do that with matlab? >>> Thank you all in advance! >>> Daniel >> I would try the analytic solution. Try sub-dividing the wave-form in >> sections - you have a pulse in teh middle and what looks like a >> triangular type of wave at either end. >> Wang King- Hide quoted text - >> >> - Show quoted text - > > Alternately, could be viewed as the convolution of a short rect pulse > and a long rect pulse.It can be seen many valid ways. Matlab is often seen as an oracle, and that's invalid. Jerry -- Engineering is the art of making what you want from things you can get. ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯






