How to import csv data to Simulink ? How to perform an FFT analysis of your CSV data ?

  Рет қаралды 1,152

Beer J

Beer J

Күн бұрын

How to import csv data to Simulink ?
How to send csv data to Simulink ?
How to do an FFT analysis on CSV data ?
0:00 - Move/send CSV data to Simulink.
04:04 - Bonus 1 : Perform an FFT analysis of your CSV data
05:34 - Bonus 2 : Plot CSV data into MATLAB
06:43 - End screen
Script :
%This is adapted to my data, change names for yours
%Please remember to check your data’s sampling time or period, you’ll need this into the block “from workspace”
bestVar=timeseries(BestCsvData.ac_current,BestCsvData.time);
tiledlayout(2,2);
nexttile
plot(BestCsvData.time,BestCsvData.ac_current,'r');
legend('Best Ac Current ever')
set(gca,'fontsize',14)
xlabel('time (s)')
ylabel('Current (A)')
title('Best AC Current ever')
grid on
nexttile
plot(BestCsvData.time,BestCsvData.ac_voltage,'b');
legend('Best Ac Voltage ever')
set(gca,'fontsize',14)
xlabel('time (s)')
ylabel('Voltage (V)')
title('Best AC Voltage ever')
grid on
nexttile
plot(BestCsvData.time,BestCsvData.dc_current,'r');
legend('Best DC Current ever')
set(gca,'fontsize',14)
xlabel('time (s)')
ylabel('Current (A)')
title('Best DC Current ever')
grid on
nexttile
plot(BestCsvData.time,BestCsvData.dc_voltage,'b');
legend('Best DC Voltage ever')
set(gca,'fontsize',14)
xlabel('time (s)')
ylabel('Voltage (V)')
title('Best DC Voltage ever')
grid on

Пікірлер: 1
@beerj274
@beerj274 Жыл бұрын
Script : %This is adapted to my data, change names for yours %Please remember to check your data’s sampling time or period, you’ll need this into the block “from workspace” workspace”bestVar=timeseries(BestCsvData.ac_current,BestCsvData.time); tiledlayout(2,2); nexttile plot(BestCsvData.time,BestCsvData.ac_current,'r'); legend('Best Ac Current ever') set(gca,'fontsize',14) xlabel('time (s)') ylabel('Current (A)') title('Best AC Current ever') grid on nexttile plot(BestCsvData.time,BestCsvData.ac_voltage,'b'); legend('Best Ac Voltage ever') set(gca,'fontsize',14) xlabel('time (s)') ylabel('Voltage (V)') title('Best AC Voltage ever') grid on nexttile plot(BestCsvData.time,BestCsvData.dc_current,'r'); legend('Best DC Current ever') set(gca,'fontsize',14) xlabel('time (s)') ylabel('Current (A)') title('Best DC Current ever') grid on nexttile plot(BestCsvData.time,BestCsvData.dc_voltage,'b'); legend('Best DC Voltage ever') set(gca,'fontsize',14) xlabel('time (s)') ylabel('Voltage (V)') title('Best DC Voltage ever') grid on
Online Parameter Estimation and Adaptive Control
45:45
MATLAB
Рет қаралды 47 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 12 МЛН
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 2,8 МЛН
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 25 МЛН
Un coup venu de l’espace 😂😂😂
00:19
Nicocapone
Рет қаралды 8 МЛН
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 205 М.
FFT in excel for spectral analysis
11:33
Mike Holden
Рет қаралды 127 М.
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 174 М.
The Problem With Microservices
17:47
Continuous Delivery
Рет қаралды 435 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 199 М.
Inverted Crank Slider Mechanism Analysis and Animation on MATLAB
22:21
Understanding the Discrete Fourier Transform and the FFT
19:20
SciLab's XCOS - A Matlab Simulink Alternative
7:18
CircuitBread
Рет қаралды 23 М.
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 12 МЛН