CR4® - The Engineer's Place for News and Discussion®


Previous in Forum: Fagor CNC Threading Error 017   Next in Forum: PC Display Automation
Close
Close
Close
6 comments
Active Contributor

Join Date: Jan 2017
Posts: 14

Matlab Question

02/18/2017 2:32 PM

please help me in finding the frequency of this graph in matlab. and tell me how to find the value of X axis when Y axis is at 0.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 19994
Good Answers: 751
#1

Re: matlab

02/18/2017 2:52 PM

So far, the frequency is 2 day-1.

Also so far, y = 0 when x ≈ 0, 3, 5.4, and 7.7.

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru

Join Date: Apr 2010
Posts: 5760
Good Answers: 578
#2
In reply to #1

Re: matlab

02/18/2017 5:01 PM

x 10-4

Register to Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 19994
Good Answers: 751
#3
In reply to #2

Re: matlab

02/18/2017 5:16 PM

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Register to Reply
Guru

Join Date: Sep 2016
Posts: 750
Good Answers: 8
#4

Re: matlab

02/19/2017 2:53 AM

oh well. Gee...that guy, frequency, probably has a bird feet.

Register to Reply Score 1 for Off Topic
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain, and now disconnecting as Little England and Wales (not too sure about Wales bit, either). Kettle's on.
Posts: 26721
Good Answers: 701
#5

Re: Matlab Question

02/20/2017 3:27 AM

Assuming the image is in the time domain, then from simple inspection the fundamental frequency is 1/2.5x104. However, the trace is a saw-tooth, and not a sine wave. Therefore there will be a number of other frequencies of various amplitudes, which are expressible as multiples of the fundamental frequency. When these are added together and added to the fundamental, the result is the saw tooth shown in the image.

Converting the image from the time domain into the frequency domain would be an interesting exercise. There is mathematics available to do this and the reference books needed are some distance away from this poster's computer.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Associate

Join Date: May 2016
Location: Ohio, USA
Posts: 34
Good Answers: 1
#6

Re: Matlab Question

02/20/2017 2:24 PM

review your Nr3 code first. from the graph, looks like something is missing.

"Numerical Recipes" the art of Scientific computing (FORTRAN)

You may be better off posting in a different forum if you want someone to do the work for you. try link below.

http://www.edaboard.com/forum.php

FYI; End code should look something like this.

plotindex = -fs/2:fs/length(N):fs/2;
plotindex = plotindex(1:max(N));
stem(plotindex, X);
title('X(k): Frequency (Hertz) on X-Axis');
xlabel('Frequency (Hertz)');
ylabel('Magnitude (Absolute Value)');
axis([-fs/2 fs/2 0 80]);

blahh blahh blahh

__________________
If you cant say anything nice , dont say anything at all.
Register to Reply Off Topic (Score 5)
Register to Reply 6 comments
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Copy to Clipboard

Users who posted comments:

gutmonarch (1); Hilliard Bill (1); PWSlack (1); Rixter (1); Tornado (2)

Previous in Forum: Fagor CNC Threading Error 017   Next in Forum: PC Display Automation

Advertisement