<< 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

Ayele, K., 2003. Introductory Economics, 3rd ed., Addis Ababa.
Widad Reply
can you send the book attached ?
Ariel
?
Ariel
What is economics
Widad Reply
the study of how humans make choices under conditions of scarcity
AI-Robot
U(x,y) = (x×y)1/2 find mu of x for y
Desalegn Reply
U(x,y) = (x×y)1/2 find mu of x for y
Desalegn
what is ecnomics
Jan Reply
this is the study of how the society manages it's scarce resources
Belonwu
what is macroeconomic
John Reply
macroeconomic is the branch of economics which studies actions, scale, activities and behaviour of the aggregate economy as a whole.
husaini
etc
husaini
difference between firm and industry
husaini Reply
what's the difference between a firm and an industry
Abdul
firm is the unit which transform inputs to output where as industry contain combination of firms with similar production 😅😅
Abdulraufu
Suppose the demand function that a firm faces shifted from Qd  120 3P to Qd  90  3P and the supply function has shifted from QS  20  2P to QS 10  2P . a) Find the effect of this change on price and quantity. b) Which of the changes in demand and supply is higher?
Toofiq Reply
explain standard reason why economic is a science
innocent Reply
factors influencing supply
Petrus Reply
what is economic.
Milan Reply
scares means__________________ends resources. unlimited
Jan
economics is a science that studies human behaviour as a relationship b/w ends and scares means which have alternative uses
Jan
calculate the profit maximizing for demand and supply
Zarshad Reply
Why qualify 28 supplies
Milan
what are explicit costs
Nomsa Reply
out-of-pocket costs for a firm, for example, payments for wages and salaries, rent, or materials
AI-Robot
concepts of supply in microeconomics
David Reply
economic overview notes
Amahle Reply
identify a demand and a supply curve
Salome Reply
i don't know
Parul
there's a difference
Aryan
Demand curve shows that how supply and others conditions affect on demand of a particular thing and what percent demand increase whith increase of supply of goods
Israr
Hi Sir please how do u calculate Cross elastic demand and income elastic demand?
Abari
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