Answered
How to convert accelerometer data to find displacement graph
hello see my suggestion below clc clearvars data = csvread('data.csv',1); % time & Acceleration data t = data(:,1)...

5 years ago | 0

| accepted

Answered
how to read data from excel file
hello your csv file has one first row wit this header (name of 6 variables : lib,pc,ir_can,ir_us,un_can,un_us) data = csvrea...

5 years ago | 1

Answered
Average of data multiples excel sheets
hello so this is my suggestion as we have here 10 sheets , my demo works for either groupped 2 or 5 sheets this is driven ...

5 years ago | 0

Answered
Could anyone help me with my Butterworth filter?
hello your filter specs and the realized filter are matching now it seems to me you're looking for a "brick wall" filter c...

5 years ago | 0

| accepted

Answered
time delay between sinus signal
hello my suggestion below the time values of the crossing points are linearly interpolated between samples for maximal time ...

5 years ago | 1

| accepted

Answered
Count consecutive elements in an array
hello try this : A = [1 1 1 1 2 2 2 4 4 4 4 1 1 1 1 2]; % A = [1 2 2 4 4 1 1 2]; %% main code p=find(diff(A)~=0); s1 ...

5 years ago | 0

| accepted

Answered
How to select and read csv data file using uigetfile?
hello if you want to grad multiple files with uigetfile, you can do that : % It is important to grab the files in ascending ...

5 years ago | 1

| accepted

Answered
What is the best way to fixe number jumps in GPS/IMU Data Plot
hello why not apply a smoothing filter - there are many options, maybe start with smoothdata example code : clc close all ...

5 years ago | 0

Answered
I want to make a function of x that uses loop for (x-x(i))
hello my 2 cents suggestion : %% x = [1 3 5]; a = 2; b = 3; %%%% main loop strc = []; for i = 1:3 str = ['(x-...

5 years ago | 0

Answered
I use matlab to draw the curve between the ID and VDS of the transistor, but there is a jumping point in the middle. How can I smooth the curve?
hello this would be my suggestion; replacing a segment between Vds = 0.5 and 1.5 with its smoothed version Vgs=1.5; W=3*10...

5 years ago | 0

Answered
How to modify range of loglog scale?
hello suggestion below : x = (0.1:0.1:50); y = 0.1+0.1*exp(0.1*x); xmax= 30; dx = 5; loglog(x,y); set(gca,'XLim',[1e-...

5 years ago | 1

Answered
How to make a plot of iteration count vs residual error?
Hello iter was not initialized nor incremented in your loop this should work now (could not test it as variables are not init...

5 years ago | 0

Answered
Create functions in loop for increasing input
hello my suggestion : work with one structure S that can grow in size inside your for loop but you have only one argument (S)...

5 years ago | 0

Answered
Plot function behave differently when only using line versus only using markers when plotting data with NaN values
Removing the NaN data will not do any harm on the dot plot, but the solid line will not have the gap anymore % fix ? B = A; B...

5 years ago | 0

Answered
How to extract value from a txt file and replace it
hello again this is a first trial It will change the numerical value before BlPitch on ach of the 3 lines but I think we ha...

5 years ago | 0

| accepted

Answered
How to synchronise two time series data with different sampling time in MATLAB?
hello see my suggeston below the new common time vector is sampled with only N = 100 here , but you can adjust this to your ...

5 years ago | 0

Answered
How to fit curve using for loop?
hello again in the mean time I created this example (only 5 loops) on dummy data you can easily expand and adapt it to your o...

5 years ago | 0

| accepted

Answered
Converting Audio File to Sound Wave (How to Add X and Y Variables for Curve Fitting and PlotWave not being read?) It worked before, but not working right now! Help please!
hello In case of trouble , I share my own piece of audio (wav files) processing good luck clc clearvars %%%%%%%%%%%%%%%%...

5 years ago | 0

Answered
Could anyone help me to fit y=1/x on my data?
hello here you are my friend plot code clc close all clearvars hold on grid on set(gca,'fontweight','bold','font...

5 years ago | 1

| accepted

Answered
plotting exp given function with db units
here you are , my friend ! SINR_dB = (-5:20); y = 0.3*exp(-0.08*SINR_dB); plot(SINR_dB,y,'b','LineWidth',4); ylim([0 0.8]);...

5 years ago | 0

| accepted

Answered
LogLog Plots for Newton's and Secant Methods
hello here the first code now showing the regular linear plot and a loglog plot I changed the N to 100 and tol to 1e-20 to h...

5 years ago | 0

Answered
How to remove warning message when we read csv file?
hello simply add this line at the start of your code : warning off

5 years ago | 0

| accepted

Answered
How to draw spectrogram plot for the csv data set
hello see the attachement code - just adapt the loading of the data to you file format

5 years ago | 1

| accepted

Answered
Why does notch filter coefficients have 10(5 numerator and 5 denominator) for butterworth order 2
hello your IIR filter size is much bigger than needed for an order 2 see example below (search for the notch filter ) % %...

5 years ago | 1

| accepted

Answered
two animated lines simultaneously with different number of sample
hello I am not sure to uderstand what kind of result you want to achieve , maybe this little demo can help you clearvars cl...

5 years ago | 0

| accepted

Answered
display gait cycle in matlab
hello this is not really a matlab question ... you have to know the sensivity of the sensor - whatever you measure , you nee...

5 years ago | 1

Answered
How to get accurate displacement/position from acceleration data?
hello I see the same question coming quite often.... when doing acceleration data integration, it is very important to calibra...

5 years ago | 0

Answered
Setting different xlim for subplots
hello maybe this ? a=-180:1:180; b=sind(a); c=cosd(a); figure(1) xlimits = [0 180;-180 0]; for i=1:2 subplot(2,2...

5 years ago | 1

| accepted

Answered
Spectrogram - changing frequency range.
hello to get a "better" spectrogram you can first decimate the input signal so that the frequency range is reduced (like a ff...

5 years ago | 0

| accepted

Answered
How to reproduce the example figure using lsqcurvefit
hello well, if the question is only about how to use lsqcurvefit, my answer is not gotta help you because I'm using either fmi...

5 years ago | 0

Load more