<< Chapter < Page
  Digital signal processing - dsp     Page 3 / 25
Chapter >> Page >

The Graph01Demo program

The data displayed in Figure 1 was produced by a program named Graph01Demo. A listing of that program is shown in Listing 37 near the end of the module. I will explain that program in detail shortly.

In addition, I will provide and discuss another sample program, which produces and plots data having considerably more engineering and scientificsignificance than the data shown in Figure 1 . (This will be a digital signal processing (DSP) example). Even in that case, however, you will see that the program that produces the data is much less complex than the program used toplot the data.

Using the plotting program with your data

I will explain everything that you will need to know to cause the output from your own engineering and scientific programs to be displayed by the plottingprogram.

The Graph01 program

The graphical display of the data shown in Figure 1 was produced by my generalized plotting program named Graph01 . As you will see later, this is a long and fairly complex program.

You will find two more variations on this program in the programs named Graph03 and Graph06 in the module titled Java1482-Spectrum Analysis using Java, Sampling Frequency, Folding Frequency, and the FFT Algorithm .

A listing of the plotting program named Graph01 is shown in Listing 39 near the end of the module.

User need not understand the plotting program

Fortunately, the user of the plotting program doesn't need to understand anything about the code that makes up the plotting program. All the user needsto understand is the interface to the program, which I will explain later.

However, for those of you who may be interested, I will also discuss and explain the plotting program later in this module.

Plotting format

As you can see in Figure 1 , the plotting program allows for plotting up to five independent functions stacked vertically, each with the same vertical andhorizontal axes. This vertical stacking format makes it easy to compare up to five plots at the same points on the horizontal axes.

If you need more than five functions, the number of functions can easily be increased with a few minor changes to the program.

(I will also provide, but will not discuss, another version of the program, named Graph02 , which superimposes up to five plots on the same coordinate system. In somecases, that is a more useful form of display. You will find a complete listing of this program in Listing 40 near the end of the module.)

Plotting parameters

As you can also see in Figure 1 , a set of text fields and a button on the bottom of the frame make it possible for the user to modify the plottingparameters and to re-plot the same data with an entirely new set of plotting parameters.

(It is often true that important but subtle pieces of information can only be exposed by viewing the same data with different sets of plottingparameters.)

Same data, different parameters

Figure 2 shows the same data as in Figure 1 , but plotted with a different set of plotting parameters.

Figure 2. Sample Display for Same Data with Different Plotting Parameters.
missing image

Questions & Answers

what is phylogeny
Odigie Reply
evolutionary history and relationship of an organism or group of organisms
AI-Robot
ok
Deng
what is biology
Hajah Reply
the study of living organisms and their interactions with one another and their environments
AI-Robot
what is biology
Victoria Reply
HOW CAN MAN ORGAN FUNCTION
Alfred Reply
the diagram of the digestive system
Assiatu Reply
allimentary cannel
Ogenrwot
How does twins formed
William Reply
They formed in two ways first when one sperm and one egg are splited by mitosis or two sperm and two eggs join together
Oluwatobi
what is genetics
Josephine Reply
Genetics is the study of heredity
Misack
how does twins formed?
Misack
What is manual
Hassan Reply
discuss biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles
Joseph Reply
what is biology
Yousuf Reply
the study of living organisms and their interactions with one another and their environment.
Wine
discuss the biological phenomenon and provide pieces of evidence to show that it was responsible for the formation of eukaryotic organelles in an essay form
Joseph Reply
what is the blood cells
Shaker Reply
list any five characteristics of the blood cells
Shaker
lack electricity and its more savely than electronic microscope because its naturally by using of light
Abdullahi Reply
advantage of electronic microscope is easily and clearly while disadvantage is dangerous because its electronic. advantage of light microscope is savely and naturally by sun while disadvantage is not easily,means its not sharp and not clear
Abdullahi
cell theory state that every organisms composed of one or more cell,cell is the basic unit of life
Abdullahi
is like gone fail us
DENG
cells is the basic structure and functions of all living things
Ramadan
What is classification
ISCONT Reply
is organisms that are similar into groups called tara
Yamosa
in what situation (s) would be the use of a scanning electron microscope be ideal and why?
Kenna Reply
A scanning electron microscope (SEM) is ideal for situations requiring high-resolution imaging of surfaces. It is commonly used in materials science, biology, and geology to examine the topography and composition of samples at a nanoscale level. SEM is particularly useful for studying fine details,
Hilary
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing - dsp. OpenStax CNX. Jan 06, 2016 Download for free at https://legacy.cnx.org/content/col11642/1.38
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing - dsp' conversation and receive update notifications?

Ask