Code covered by the BSD License  

Highlights from
TRIGDEMO

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 4.45 KB File ID: #22664
image thumbnail

TRIGDEMO

by Matt Fig

 

12 Jan 2009

Allows user to see how parameters affect plots of trigonometric functions.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

Interactively explore how parameters affect trigonometric functions. TRIGDEMO allows user to manipulate the parameters A,B,C,D in the general equation:

y = y(x) = A trig(Bx + C) +D

Where trig is any one of sine, cosine, tangent, cosecant, secant, cotangent.

The inspiration for this was my participation in a discussion, during the course of which, it became clear that several very educated people didn't completely (reflexively) understand how these parameters affect the plot of trigonometric functions.

I figure if these folks were hesitant, there might be others out there who could use a little refresher.

For demonstration purposes only! This is not meant to be earth-shattering.

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
03 Dec 2010 Oleg Komarov

I think the plot should be centered on (0,0) and the axis should be dashed (or visible somehow).
Having a reference point when manipualting the function would help even more to understand its behaviour.

04 Dec 2010 Matt Fig

Good idea Oleg. I seem to remember thinking I should do this when I wrote it, but rejecting the idea for some reason. I will think about it some more and update the file if I can't remember my initial reason for rejecting this idea.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
demo Matt Fig 13 Jan 2009 15:50:43
gui Matt Fig 13 Jan 2009 15:50:43
trigonometry Matt Fig 13 Jan 2009 15:50:43
function Matt Fig 13 Jan 2009 15:50:43
parameter Matt Fig 13 Jan 2009 15:50:43
gui Cristina McIntire 15 Jan 2009 13:10:14
function Cristina McIntire 15 Jan 2009 13:10:14
demo Cristina McIntire 15 Jan 2009 13:10:14
demo Norm 23 May 2009 05:45:55

Contact us at files@mathworks.com