All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Programmer's Corner

Notices

Programmer's Corner Discussion forum for all aspects of programming and software engineering. Any software programming language welcome: C, C++, C#, Fortran, Java, Matlab, etc.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 12-04-2008, 10:17 AM
wick54 wick54 is offline
New Member
 
Join Date: Dec 2008
Posts: 3
Default matlab - finding amplitude, frequency & periodic time of given sine wave

hi every one,
i'm trying to find amplitude, frequency & periodic time of given sine wave using matlab
actually the equation is y = 2sin3x and x is -4pi<x<4pi
so what commands shoud use in matlab to find those variables

in addition, i need to draw the fequency domain plot for the above given plot using matlab
please help me
thank you
Reply With Quote
  #2  
Old 12-04-2008, 12:52 PM
blazedaces's Avatar
blazedaces blazedaces is offline
Senior Member
 
Join Date: Jul 2008
Posts: 130
Default

Quote:
Originally Posted by wick54 View Post
hi every one,
i'm trying to find amplitude, frequency & periodic time of given sine wave using matlab
actually the equation is y = 2sin3x and x is -4pi<x<4pi
so what commands shoud use in matlab to find those variables

in addition, i need to draw the fequency domain plot for the above given plot using matlab
please help me
thank you
Seriously? A teacher actually assigned this to you? These numbers are obvious by observation based on a simple equation: y = A*sin(2*pi*f*x+phase). Honestly, what in the world is the point of learning how to obtain it through matlab?

Sorry, I just feel it seems like a stupid assignment. But that doesn't really help you does it. Anyway, as you can see I've shown you how you can easily obtain these constants via observation in real life. That should explain to you certain ways you can go about it.

So... do you have any idea what a frequency domain plot even is? What issues are you having with this problem? Do you know how to do these things normally and are having trouble with matlab? What have you done so far on your own that we can help you with?

-blazed
Reply With Quote
  #3  
Old 12-04-2008, 10:00 PM
wick54 wick54 is offline
New Member
 
Join Date: Dec 2008
Posts: 3
Default

thanks bro, what about the 2nd part??? do you guys know abt to draw the fequency domain plot for the above given plot using matlab??
than you
Reply With Quote
  #4  
Old 12-04-2008, 10:53 PM
blazedaces's Avatar
blazedaces blazedaces is offline
Senior Member
 
Join Date: Jul 2008
Posts: 130
Default

Quote:
Originally Posted by wick54 View Post
thanks bro, what about the 2nd part??? do you guys know abt to draw the fequency domain plot for the above given plot using matlab??
than you
Sure.

Now, do you know what a frequency domain plot actually is and how to obtain it without matlab? As in by hand? If you do, matlab makes it incredibly easy...

-blazed
Reply With Quote
  #5  
Old 12-05-2008, 02:13 AM
wick54 wick54 is offline
New Member
 
Join Date: Dec 2008
Posts: 3
Default

actually i have no idea how to make to by hand, can you please tell me how can i use matlab to plot it???
Reply With Quote
  #6  
Old 12-05-2008, 03:49 AM
blazedaces's Avatar
blazedaces blazedaces is offline
Senior Member
 
Join Date: Jul 2008
Posts: 130
Default

Quote:
Originally Posted by wick54 View Post
actually i have no idea how to make to by hand, can you please tell me how can i use matlab to plot it???
I don't understand, what kind of class tells you to do something you've never even heard of by hand... in a computer?

The concept of the frequency domain. Do you know where that comes from? Do you know what it means? Even in very simple terms?

Do you know what is the fourier transform?

-blazed
Reply With Quote
  #7  
Old 03-27-2009, 12:16 PM
Aesh Aesh is offline
New Member
 
Join Date: Mar 2009
Posts: 2
Default

Quote:
Originally Posted by blazedaces View Post
Sure.

Now, do you know what a frequency domain plot actually is and how to obtain it without matlab? As in by hand? If you do, matlab makes it incredibly easy...

-blazed


hi..i ws searching on how do v study the waveforms in frequency-domain graph. i came accross this post..n really wnt to know how a frequency-domain plot is drawn by hand?
Thnx
Reply With Quote
  #8  
Old 03-28-2009, 12:26 AM
dig1 dig1 is offline
Junior Member
 
Join Date: Jul 2008
Posts: 18
Default

frequency domain plot is done with two things:

like just a regular graph, frequency graph has two variables.... W - omega and the magnitude of the transfer function or the function expressed in the s-domain or frequency domain. usually these are the fourier coefficents....just graph these two variables on a graph like you would a regular equation
Reply With Quote
Reply   Post New Thread

Tags
, , , , , , ,


Related Site Pages
Section Title
Worksheet Passive integrator and differentiator circuits
Worksheet Mixed-frequency signals
Worksheet AC waveforms
Textbook More on spectrum analysis : Mixed-frequency Ac Signals
Textbook Square wave signals : Mixed-frequency Ac Signals
Video Lecture Sine Wave Characteristics (cont) - Alternating Current
Textbook AC waveforms : Basic Ac Theory
Textbook AC phase : Basic Ac Theory
Textbook Measurements of AC magnitude : Basic Ac Theory
Textbook Waveform analysis : Ac Circuits


Similar Threads
Thread Thread Starter Forum Replies Last Post
AC sine wave to DC square wave, newb, saw a similar thread SpeedEuphoria General Electronics Chat 11 05-01-2010 12:28 AM
Useful Matlab Information Dave Programmer's Corner 7 11-09-2008 05:51 AM
Triangle to sine wave convertor AetherNZ The Projects Forum 3 07-17-2008 02:32 AM
changing a modified sine wave to true sine wave using simulink hyde6666 The Projects Forum 0 07-15-2008 06:35 PM
intergrator waveform measurements and symmetry relicmarks General Electronics Chat 10 04-19-2008 10:45 PM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:05 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.