I enabled fft function in oscillioscope and it saved the data as FF... (2024)

19 views (last 30 days)

Show older comments

Honey about 9 hours ago

  • Link

    Direct link to this question

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d

  • Link

    Direct link to this question

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d

Commented: Star Strider about 7 hours ago

Accepted Answer: Star Strider

  • 550mvp.csv

%%

folder = 'C:\Users\haneu\OneDrive\바탕 화면\New folder (2)';

filename = '550mvp.csv';

data = readtable(fullfile(folder,filename));

frequency = table2array(data(3:end,1));

amplitude = table2array(data(3:end,2));

figure,plot(frequency/1e6,amplitude)

xlim([0,15])

xlabel('Frequency [MHz]'),

grid on,

ylabel('Amplitude[dBV]')

0 Comments

Show -2 older commentsHide -2 older comments

Sign in to comment.

Sign in to answer this question.

Accepted Answer

Star Strider about 2 hours ago

  • Link

    Direct link to this answer

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#answer_1485118

  • Link

    Direct link to this answer

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#answer_1485118

Edited: Star Strider about 1 hour ago

Open in MATLAB Online

You cannot reliably invert a Fourier transforom unless you also have the phase information. Lacking the phase information, you can still invert it, however the result will not be reliable and may not reflect the actual time-domain signal. The best approach is to record the time-domain signal and calculate the Fourier transform afterwards.

One approach —

RL = readlines('550mvp.csv');

H1 = split(RL(1,:),',');

H2 = split(RL(2,:),',');

T1 = readtable('550mvp.csv', 'HeaderLines',2);

T1.Properties.VariableNames = H1.'

T1 = 4002x2 table

x-axis 1 ___________ __________ -2.46e-05 0.025633 -2.4575e-05 0.019603 -2.455e-05 0.0099925 -2.4525e-05 0.0015126 -2.45e-05 -0.0065276 -2.4475e-05 -0.014568 -2.445e-05 -0.023048 -2.4425e-05 -0.030648 -2.44e-05 -0.036678 -2.4375e-05 -0.042709 -2.435e-05 -0.044719 -2.4325e-05 -0.048739 -2.43e-05 -0.052759 -2.4275e-05 -0.052759 -2.425e-05 -0.056339 -2.4225e-05 -0.052759

NrMissing = nnz(ismissing(T1))

NrMissing = 4

T1 = fillmissing(T1, 'linear');

figure

plot(T1{:,1}, T1{:,2})

grid

xlabel(H2(1,:))

ylabel(H2(2,:))

I enabled fft function in oscillioscope and it saved the data as FF... (3)

L = height(T1)

L = 4002

Fn = max(T1{:,1}); % Nyquist Frequency

Fs = Fn*2; % Sampling Frequency

Ts = 1/Fs; % Sampling Interval

Lt = 2*L; % Assumed Length Of Original Time-Domain Signal

t = linspace(0, Lt-1, Lt)/Fs; % Time Vector

v = ifft([T1{:,2}; flip(T1{:,2})],'symmetric');

v = 8004x1

-48.7696 31.5389 -0.9678 -10.0265 0.5044 6.0149 -0.5402 -4.1703 0.5625 2.9814

<mw-icon class=""></mw-icon>

<mw-icon class=""></mw-icon>

figure

plot(t, v)

grid

xlabel('Time')

ylabel('Volt')

xlim([min(t) max(t)])

I enabled fft function in oscillioscope and it saved the data as FF... (4)

figure

plot(t, v)

grid

xlabel('Time')

ylabel('Volt')

xlim([min(t) 1E-6])

I enabled fft function in oscillioscope and it saved the data as FF... (5)

This initially re-creates the full ‘original’ two-sided Fourier ttransform by appending a flipped version of the original one-sided Fourier transform to it and then doing the inversion. The highest frequency is assumed to be the Nyquist frequency here, and the sampling frequency and sampling intervals are calculatted from it.

.

EDIT — Corrected typographical errors.

EDIT — (14 Jul 2024 at 13:24)

Forgot the symmetry flag in the ifft call. Added now.

.

6 Comments

Show 4 older commentsHide 4 older comments

John D'Errico 7 minutes ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210908

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210908

Always a pleasure to read a good answer.

Honey less than a minute ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210913

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210913

I see the amplitude I gave was in mili Volt peak to peak.Is there a posibility to plot a spectrogram with current data I have.I see time domain signals are not exactly the same you are right the pase information is lacking.

Honey 2 minutes ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210918

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210918

I appreciate your help. :)

Star Strider 4 minutes ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210923

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210923

@John D'Errico — I very much appreciate your compliment!

@Honey — As always, my pleasure!

To plot the spectrogram, use the reconstructed time-dopmain signal, or preferably tthe original time-domain signal if you have it. I generally prefer the pspectrum function witth the 'spectrogram' option because it calculates the power spectrum spectrogram (units are dB), not the power density spectrogram (units are dB/Hz).

Honey 7 minutes ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210928

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210928

hey thanks for your help I got the time domain data save its saved seperately in Csv file for fft and time domain.sorry for the trouble:p

Star Strider 30 minutes ago

Direct link to this comment

https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210938

  • Link

    Direct link to this comment

    https://www.mathworks.com/matlabcentral/answers/2137168-i-enabled-fft-function-in-oscillioscope-and-it-saved-the-data-as-fft-amplitude-dbv-and-frequency-d#comment_3210938

@Honey — No trouble at all!

Here’s my one-sided Fourier transform function, in the event you want to use it —

function [FTs1,Fv] = FFT1(s,t)

% Arguments:

% s: Signal Vector

% t: Associated Time Vector

t = t(:);

L = numel(t);

if size(s,2) == L

s = s.';

end

Fs = 1/mean(diff(t));

Fn = Fs/2;

NFFT = 2^nextpow2(L);

FTs = fft((s - mean(s)) .* hann(L).*ones(1,size(s,2)), NFFT)/sum(hann(L));

Fv = Fs*(0:(NFFT/2))/NFFT;

% Fv = linspace(0, 1, NFFT/2+1)*Fn;

Iv = 1:numel(Fv);

FTs1 = FTs(Iv,:);

end

I wrote it because I was simply tired of typing the same code every time I wanted to use the fft function.

.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

See Also

Tags

  • signal processing
  • fft
  • data acquisition

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

An Error Occurred

Unable to complete the action because of changes made to the page. Reload the page to see its updated state.


I enabled fft function in oscillioscope and it saved the data as FF... (12)

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

You can also select a web site from the following list

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom(English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

I enabled fft function in oscillioscope and it saved the data as FF... (2024)

References

Top Articles
O's manager Hyde charges Yanks' dugout after HBP, sparking fracas
T33n Leak 5-17: In Depth Analysis of the Latest Cybersecurity
Funny Roblox Id Codes 2023
Golden Abyss - Chapter 5 - Lunar_Angel
Www.paystubportal.com/7-11 Login
Joi Databas
DPhil Research - List of thesis titles
Shs Games 1V1 Lol
Evil Dead Rise Showtimes Near Massena Movieplex
Steamy Afternoon With Handsome Fernando
Which aspects are important in sales |#1 Prospection
Detroit Lions 50 50
18443168434
Newgate Honda
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Grace Caroline Deepfake
978-0137606801
Nwi Arrests Lake County
Justified Official Series Trailer
London Ups Store
Committees Of Correspondence | Encyclopedia.com
Pizza Hut In Dinuba
Jinx Chapter 24: Release Date, Spoilers & Where To Read - OtakuKart
How Much You Should Be Tipping For Beauty Services - American Beauty Institute
Free Online Games on CrazyGames | Play Now!
Sizewise Stat Login
VERHUURD: Barentszstraat 12 in 'S-Gravenhage 2518 XG: Woonhuis.
Jet Ski Rental Conneaut Lake Pa
Unforeseen Drama: The Tower of Terror’s Mysterious Closure at Walt Disney World
Ups Print Store Near Me
C&T Wok Menu - Morrisville, NC Restaurant
How Taraswrld Leaks Exposed the Dark Side of TikTok Fame
Olivia Maeday
Random Bibleizer
10 Best Places to Go and Things to Know for a Trip to the Hickory M...
Black Lion Backpack And Glider Voucher
Gopher Carts Pensacola Beach
Duke University Transcript Request
Lincoln Financial Field, section 110, row 4, home of Philadelphia Eagles, Temple Owls, page 1
Jambus - Definition, Beispiele, Merkmale, Wirkung
Ark Unlock All Skins Command
Craigslist Red Wing Mn
D3 Boards
Jail View Sumter
Nancy Pazelt Obituary
Birmingham City Schools Clever Login
Thotsbook Com
Funkin' on the Heights
Vci Classified Paducah
Www Pig11 Net
Ty Glass Sentenced
Latest Posts
Article information

Author: Golda Nolan II

Last Updated:

Views: 6032

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Golda Nolan II

Birthday: 1998-05-14

Address: Suite 369 9754 Roberts Pines, West Benitaburgh, NM 69180-7958

Phone: +522993866487

Job: Sales Executive

Hobby: Worldbuilding, Shopping, Quilting, Cooking, Homebrewing, Leather crafting, Pet

Introduction: My name is Golda Nolan II, I am a thoughtful, clever, cute, jolly, brave, powerful, splendid person who loves writing and wants to share my knowledge and understanding with you.