Respondida
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;...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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 %%%...

alrededor de 5 años hace | 1

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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)...

alrededor de 5 años hace | 0

| aceptada

Respondida
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 =...

alrededor de 5 años hace | 0

Respondida
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 ...

alrededor de 5 años hace | 3

| aceptada

Respondida
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 %%%%%%...

alrededor de 5 años hace | 0

Respondida
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 ...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
Subtract 1 from variable each second
hi nothing fancy counter = 100; while true do_something=true; counter = counter -1; % decrement counter pause...

alrededor de 5 años hace | 0

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

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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 : ...

alrededor de 5 años hace | 0

Respondida
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 ...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 1

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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]; ...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

| aceptada

Respondida
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...

alrededor de 5 años hace | 0

Respondida
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(...

alrededor de 5 años hace | 0

Respondida
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...

alrededor de 5 años hace | 0

Cargar más