Beantwortet
How can I take the average of certain columns in each excel sheets
hello Marion see my example below (the dummy excel file is attached) hope it helps % Importing Data from excel across mult...

fast 3 Jahre vor | 0

Beantwortet
How to calculate 8 days mean from ten years data?
ok so we have to do the processing for each year and pay attention to the remaining (variable length) days NB that as we now h...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Fitting a model to my data using non linear least square fit method
hello try this , hope it helps results : m = 24.5179 q = 1.2078 data = readmatrix('LVD_AE.xlsx'); x = data(:,1...

fast 3 Jahre vor | 0

Beantwortet
How to fit an equation (catenary equation in 2D) to a 3D dataset (experimental data of a catenary curve in 3D) ?
This is a lazy (tired) guy answer i figure out I could easily transform the 3D array into 2D then do a parabola fit (yes I know...

fast 3 Jahre vor | 1

Beantwortet
Combining vectors in a for loop to form a final matrix
For small tables / arrays I don't pay too much attention to preallocation (but it's important if you are dealing with large data...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
peak average of consecutive values in a matrix array
hello maybe this ? I am using peakseek , this fex submission is available here PeakSeek - File Exchange - MATLAB Central (...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Optimization problem fitting arrays
hello this is the poor man's solution with fminsearch (as I don't have the optimization toolbox but you can easily use fmincon...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to convert 15days data into monthly scale?
hello I downloaded some files (not all as they are pretty big) to test my code the image format is grayscale so I get a 2D ar...

fast 3 Jahre vor | 1

Beantwortet
Filter data by flag columns
hello this is my first attempt , I hope I didn't make any mistake in your requirements interpretation still there is one case...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
cubic interp2 on latitude & longitude data. wind comparison
hello I am not an expert for atmospheric data post processing, buth here are my findings 1 / seems to me flipping the data is...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
index exceed matrix elements
Code improved below same mistake found as @Voss % data=[0 6 900; % 6 7 2400; % 7 15 3000; % 15 18 1800; ...

fast 3 Jahre vor | 0

Beantwortet
How can I display the cursor coordinates on a heatmap?
hello this is maybe one solution, based on this info Enable data cursor mode - MATLAB - MathWorks France result (screenshot...

fast 3 Jahre vor | 0

Beantwortet
Why are some plot figures not showing all lines?
you are displaying twice the same numerical data so colors are hidden this comes from a mistake when you load the data , you a...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to generate odd frequency sinusoid input using idinput
I don't have anything against idinput , but why can't you do this directly with some basic code : f = (1:2:7); % odd frequenci...

fast 3 Jahre vor | 0

Beantwortet
calculate Wavelength of vortices from noisy velocity fluctuations data.
hello this s a simplified code taken from a more general one I use for noise and vibration data analysis , but it can be used ...

fast 3 Jahre vor | 0

Beantwortet
How to remove the ripple or artifacts caused by lowpass filter?
hello Butterworth filters do have ripples in their step response... look at the step response of your Butterworth filter wit...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
least square fit "lsqcurvefit" not good enough?
hello you can get better results if you start the fit not at index 1 , but a bit above, as your first sample seems a bit off a...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Need guidance to loop directory, import .csv, get corresponding data from 2nd row and filter first, extract this corresponding data.
hi below some simple code to loop in a folder - we could also loop over multiple folders if we need to there will be still a...

fast 3 Jahre vor | 0

Beantwortet
How to get rid of spikes from the attached graph
hello you mean the spikes down to zero that appears on the 2nd channel ? this is my suggestion load('batterycellhighvolt...

fast 3 Jahre vor | 0

Beantwortet
How to determine phase shift and slope for a varying waveform?
hello I would suggest to compute the zero crossing time coordinates of both signals the function used here implement linear ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How we can define the same number of contour vertices (points)in each level?
hello again this is the code I was suggesting above now all the level lines have same number of samples N = 50 here. if you ...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to compute a weighted mean between two polygons?
hello maybe this ? (nothing fancy) as W1 and W2 are almost the same , the resulting average curve (black dashed ) is half way...

fast 3 Jahre vor | 0

Beantwortet
How to make a contourf plot follow a line?
hello again here a small demo code based on a first given elipse (bottom left on the picture) you can use a spacing between t...

fast 3 Jahre vor | 2

| akzeptiert

Beantwortet
May I ask if there are any good methods in MATLAB that can fit broken lines
hello again @tabf this would be my suggestion - of course it has some ressemblance to my answer in your other post. when looki...

fast 3 Jahre vor | 0

Beantwortet
Combining data in tab-delimited .txt files together that each have multiple headers into a single growing .txt file?
hello this would be my suggestion ..based on dummy "new" data generated with random vertical length to mimic your case. it sh...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Please share the algorithm of the particular data set. I want to find out average of the attached data of every 5 seconds. Thank You
hello try this data = readmatrix('Data.csv'); % Force (N),Position (mm),Time (sec) Time = data(:,3); t = linspace(Time(1...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Display 2D Data in a 3D plot
i believe that should be sufficient for what we need pay attention to your row and column indexes when you import data (here...

fast 3 Jahre vor | 1

| akzeptiert

Beantwortet
Creating a linear array of pulses
maybe this ? I am not sure how you compute the "normalized on time " values so I tried something on my own : h = dc(k)/sum(d...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Artefacts deflecting to zero in a signal
seems to me that with filloutliers we can achieve a good result here you may have to tune the parameters to get the best res...

fast 3 Jahre vor | 0

| akzeptiert

Beantwortet
Bad Exponential Fit of Data: How to solve a problem with bad parameter estimation
hello a very simple approach can give you the right answer : load('Qdata.mat') % model : y = b*exp(m*x); P = polyfit(X...

fast 3 Jahre vor | 1

| akzeptiert

Mehr laden