Réponse apportée
Adding a counter to a loop
hello IMHO, the initialisation of the counters should be done BEFORE the first for loop CountWintW=0; CountWintE=0;...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
SPEED CONTROL OF DC MOTOR USING PID
hello Giuseppe I don't understand why you say : the input is:v(s)+Td*(Ls+R/K), where does that comes from ?? I double checke...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How do I FFT a portion of an audio signal using window size 8000.
hello see demo code below, adapt it to your own needs clc clearvars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
FRF Issue of 4 DOF Frame
hello again so this is the code a bit reworked and expanded the "interesting" portion in the FRF plot is in the sub Hertz ran...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
sine curve fitting by recursive method
hello this is a little demo you can adapt to your own needs ... clc clearvars close all % dummy signal (sinus + noise)...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How read a txt file from a microphone acquisition and plot a FRF in Matlab ?
hello Giancula this is how I interpreted your request hope it helps output : data = readmatrix('run1.txt'); freq =...

environ 5 ans il y a | 0

Réponse apportée
Filter noise from .wav using FIR or IIR digital filters or FFT filtering method
hello see my demo code below for fft analysis and Butterworth filters adpt it to your own needs hope it helps clc clear ...

environ 5 ans il y a | 3

| A accepté

Réponse apportée
How to plot the frequency spectrum graph in high-pass filter Blackman windowing method?
hello my code suggestion for audio file analysis : clc clear all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%...

environ 5 ans il y a | 0

Réponse apportée
Is it possible to calculate time constant and DC gain for RC circuit
hello a simple RC circuit like the one shown above has tau = RC and DC gain =1 (assuming Vout = voltage accross C and ...

environ 5 ans il y a | 0

Réponse apportée
how to create copies of chirp signal?
hello i modified a bit your code and expanded it hope it helps t1=1; f0=0; f1=100; samples = 1000; dt = 1e-3; t=(0:sam...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Scanning signal/Storing anything other then zeros
hello my suggestion / demo code : I understand the output must be a matrix of 3 columns; tol = eps; % set a tolerance value...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Subtract 1 from variable each second
hi nothing fancy counter = 100; while true do_something=true; counter = counter -1; % decrement counter pause...

environ 5 ans il y a | 0

Réponse apportée
How to plot this figure?
hu try this and adapt to your own needs a = rand(300,3); figure,imagesc(a);colormap('jet');colorbar

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Noisy plot after deviation (no sensor)
hello my suggestion, with some smoothing at all stages : z_irl = readmatrix('z_irl_data.txt'); z_irls = smoothdata(z_irl,'g...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Trying to find out that how many loop cycle it complete before the 'S' become zero. S value is not decreasing. Need to decrease S value zero and sum the total cycle number?
hello again so I made 2 modifications initialized F with 0 (my guess) changed the while tolerance limit because otherwise i...

environ 5 ans il y a | 0

Réponse apportée
in my program, i retrieve .csv data using load, but why is there an error when retrieving the data? . anyone can help me?
hello again it worked fine with readtable , here I simply plot the first variable of the table and it's min value T = readtab...

environ 5 ans il y a | 0

Réponse apportée
Plotting acceleration vs time on Matlab from accelerometer data that doesn't have a time column
hello as we know the sampling rate Fs and the amount of samples , there is no big difficulty to reconstruct a time vector : ...

environ 5 ans il y a | 0

Réponse apportée
How to draw a line of best fit on filtered discrete data sets
I used this simple example and created a gap in the data (not NaN's) there is no problem to use polyfit in that situation ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Deriving an average loop waveform from multiple loops
So finally after some attempts and headaches , a positive result emerged this is it and the code that generated it - there i...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to find a frequency of a chirp signal at each sampling point
hello this code will plot the period (and from there the frequency) between two consecutive "zero crssing" points see second...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Fitting Gaussian keeping max amplitude same
hello robust smoothing can help you see code below clc clearvars %--- Example #1: smooth a curve / narrow peaks remov...

environ 5 ans il y a | 1

Réponse apportée
Filter amplitude data as a function of time, calculating the time difference
hello Ignacio see figure(2) results result is displayed in command window : time distance dt = 440.9509 s at threshold val...

environ 5 ans il y a | 0

Réponse apportée
Plotting data from a matrix: Showing shaded area on graph
hello Isabella this is my suggestion and how it looks as a plot you may have to tweka the labels / titles etc ... hope it h...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Color gradient for graph in a for loop
hello this would be my suggestion , gray dark to light for one curve I wonder if you overlay 3 curves at each iteration if it...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
bar plot with different color bars depending on height
hello Giannis see code below and ouput here : clc clearvars x = [1:10]; y= [13, 25, 34, 65, 78, 92, 54, 46, 39, 5]; ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
concatenate repeating digit to the end of a column in numeric matrix
hello so my 2 cents suggestion, build on @DGM input (tx to him ! ) it just needed an additionnal correction term to be perfec...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how can I concatenate [aa,bb]?
hello I believe there are a frew mistakes as aa and bb are not indexed in the for loops , so you have a scalar that will be ov...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to draw such plot
helllo simply like this (one curve demo) % 3 storey plot x = [ 1 1 2 2 3 3]; y = [5000 4000 4000 3000 3000 2000]; p...

environ 5 ans il y a | 0

Réponse apportée
Hello everyone. How to make a matrix with unequal number of rows and columns, and make the number of rows and columns the same by adding zeros. Thank you very much.
hello see example code below clearvars; load('dataA.mat') [m,n] = size(dataA); if m>=n out = zeros(m,m); out(...

environ 5 ans il y a | 0

Réponse apportée
gaussian chirp signal generation
hello Maj I fixed your code and improve a bit the x axis time display (all plots are centered around t = 0 ) the major problem...

environ 5 ans il y a | 0

Charger plus