Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
Signal Generation
This application demonstrates how to efficiently generate signals.
Using the embedded GUI components you can generate a signal composed of a fundamental frequency and the first four harmonics. You can also investigate different ways to invoke the signal generation function and compare the execution time. The procedure can be invoked either through the function or by compiling the function and invoking the compiled version.
In the following interface, use the sliders to enter the fundamental frequency and the amplitudes of the first four harmonics, then click the Generate Waveform button to create the audio file and update the plots.
Press the PlayWaveform button to listen to the generated audio file.
To view the procedure used to generate the signal, Expand Code Edit Region, below (Right-click > Expand Code Edit Region)
By selecting the evalhf, and compiled Maple proc radio buttons, you can change the way the signal generation procedure is invoked.
The first invokes the procedure through the evalhf() command.
The second case further speeds up the execution by compiling the procedure and executing the compiled version.
Fundamental Frequency
Calculation Method:
Sampling Frequency (Hz)
Duration (s)
Harmonics
Frequency Response
dB
Time Plot
Generation time:
Download Help Document