Respondida
draw the amplitude-frequency characteristic curve of a particular transfer function
Simply used your info and coded in matlab you have now here the right half of the plot , if you need both negative and positiv...

más de 2 años hace | 0

| aceptada

Respondida
How to fix my linear fit model?
yet another simple solution, using fminsearch (the no toolbox solution) % data laser = [0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16...

más de 2 años hace | 1

Respondida
How to fix my linear fit model?
hello simply change your equation for the second part with a x shift rajaarvo = @(I) 0.1*I.*(I>=0 & I<18)+25*I.*(I>=18 & I<=...

más de 2 años hace | 1

Respondida
Plot change in velocity
hello again we could use gradient or the function provided below then all vectors are of same size (101 samples) which allo...

más de 2 años hace | 0

| aceptada

Respondida
How can I fix "Index in position 2 exceeds array bounds" in for loop?
hello to make your code work, b should be initiallized with same dimensions as a (as a vector, not just one scalar) also it's...

más de 2 años hace | 0

| aceptada

Respondida
Identify local minima in 3D plot/coordinate data
hello this is what you need : Find local minima - MATLAB islocalmin - MathWorks France try this load('sampledata.mat') ...

más de 2 años hace | 0

| aceptada

Respondida
Environmental data band-pass filter
it's me again :) ! I'm just guessing, maybe this is what you wanted (baseline correction) clc clear; data_datalog = load('...

más de 2 años hace | 0

Respondida
How do I count the number of times my graph crosses two separate lines?
hello maybe this ? the second plot shows the valid points (Ncounts = 4) % dummy data n = 5000; x = 50*(0:n-1)/n; y = -...

más de 2 años hace | 0

| aceptada

Respondida
How to combine two data file in one file?
hello try this : IQ_data = [2756.00000000000 - 1252.00000000000i 2681.00000000000 - 992.000000000000i 2540.00000000000 - 6...

más de 2 años hace | 0

| aceptada

Respondida
Adding specified loop outputs
hello again seems to me you want to sum the first 3 rows so it should be : Sum1=sum(output(1:3,:)); instead of Sum1=su...

más de 2 años hace | 1

| aceptada

Respondida
How to find Quadratic Damping?
hello again with some delay, here now the code modified and extended of course we already had the (equivalent) linear damping...

más de 2 años hace | 1

| aceptada

Respondida
Problem in finding the correct Chebyshev interpolation line
hello maybe this ? %% Data input x_data = [1830; 1920; 1940; 1975; 2000; 2020]; %x values y_data = [0.089; 3.52; 4.86; 17....

más de 2 años hace | 0

| aceptada

Respondida
Why does the psd of my filtered signal perfectly overlap my raw signal's one?
hello see code below, the effect of the low pass filter is clearly to be seen on the psd plot now I wonder whatkind of "activ...

más de 2 años hace | 1

Respondida
Plotting phase noise vs offset frequency of an optoelectronic oscillator...
hello the main problem is that your data has a very coarse frequency resolution so if I remove the content below 10GHz , rem...

más de 2 años hace | 0

Respondida
Need to put symbols on curve
Like that ? %===========================================================% clc close all; clear; workspace; %===========...

más de 2 años hace | 0

| aceptada

Respondida
Shift Filter outputs to align peaks
hello @Chunru sorry but I was a bit skeptical about your solution based on group delay seems to me the "aligned" output signa...

más de 2 años hace | 1

| aceptada

Respondida
Can I smoothen the cdfplot() result?
some more code to look at - I kept only the best solutions , even though there are probably lot of other solutions also I intr...

más de 2 años hace | 1

Respondida
How to do optimization coding for minimize peak width ?
hello I simply added a for loop for the del parameter to see how peak amplitude and peak width of the red curve would evolve v...

más de 2 años hace | 0

| aceptada

Respondida
While loop using up to input and fixing input definition
Hello gain, so this is the code with the small changes mentionned above clc clearvars close all fs = 20e3; numFilts = 32;...

más de 2 años hace | 1

Respondida
required assistance in fitting
so this is the poor"s man optimization (w/o any toolbox) a brute force approach , let's create a 2 parameter grid and evaluate ...

más de 2 años hace | 0

| aceptada

Respondida
I wanted to combine 100 csv files for plotting in Matlab. All the files have same number of columns and rows. Can anyone help?
maybe this ? here I wanted to do a vertical concatenation - up to you to change that portion of the code also , if processi...

más de 2 años hace | 0

Respondida
High Frequency Noise baseline filter
hello again an explosive blast record will have a very wide frequency range , the spectrogram will tell you that the signal e...

más de 2 años hace | 0

Respondida
Plot velocity profiles along a slope
hello again so this is a starter , would need further work to define correct range of the ruler according to your data %% cre...

más de 2 años hace | 0

Respondida
How to delete every nth column in table?
maybe this ? X = (1:9)'*(1:10:50); % remove only 2nd column t = array2table(X,'VariableNames',{'t' 'x' 'y' 'z' 'r'}) t(...

más de 2 años hace | 0

Respondida
How would i change this code so that it plots all of the circular paths and markers all at once instead of one after the other?
simply commenting the inner for loop , and you get this result : (I also reduced the number of theta points by factor 2 ) : th...

más de 2 años hace | 0

Respondida
How to automatically identify and fit segments of a force-distance curve in MATLAB?
hello maybe this ? I simply wanted stright lines (polyfit order 1) I suggest x0,y0 and x1,y1 as possible candidates for th...

más de 2 años hace | 0

Respondida
Impact location detection from accelerometer data
hello so this would be my suggestion I hope my conclusion is not completely wrong ! At the end it seems I can clearly see ...

más de 2 años hace | 0

Respondida
Trouble with using plot because of wrong data type
A numerical simulation (no sym) a0 = 0.529177 * 10^(-10); %Bohr radius r = linspace(0,10*a0,100); R = 2*(1/2*a0)^(3/2)*exp(-r...

más de 2 años hace | 1

| aceptada

Respondida
duration of rain. help
hello this is one way to do it - just plain simple matlab functions . Of course , someone fluent with timetables can do it a...

más de 2 años hace | 2

| aceptada

Respondida
How to plot multiplot with different range of data?
hello maybe this ? I normalized x1 and x2 so both plots would overlay nicely . A=readmatrix("wan_band.dat"); [x1,y1]...

más de 2 años hace | 0

Cargar más