CR4 - The Engineer's Place for News and Discussion®

Previous in Forum: outlook express   Next in Forum: Prolem with Text-editors[Word-pad & Word]
Close

Comments Format:






Close

Subscribe to Discussion:

CR4 allows you to "subscribe" to a discussion
so that you can be notified of new comments to
the discussion via email.

Close

Rating Vote:







Member

Join Date: Mar 2008
Posts: 5

rectangular waveform using matlab 7

04/04/2008 4:47 PM

hallo...i'm still a beginner in matlab 7. how to create a rectangular waveform based on the input array using matlab 7?...does anyone has the source code... for example, if my input array is logic levels (1 0 1 1 1 0), how to create a rectangular waveform that if my input is logic 1, then, the rectangular waveform will up to the highest level..and if logic 0, it will down to the lowest level..

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Anonymous Poster
#1

Re: rectangular waveform using matlab 7

04/12/2008 5:15 PM

Just create a vector. > x=[1 0 1 1 1 1 0 0 0 0 0 1]

Then do a >plot(x) to look at the signal you made.

Register to Reply
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Previous in Forum: outlook express   Next in Forum: Prolem with Text-editors[Word-pad & Word]

Advertisement