Answered
enter values from 0 to N (imposed value) with step of 100 on the x-axis of the bar graph
hello Alberto welcome back ! i suppose you wanted to do this matrix = [64 440; 65 489; 66 581; 67 563]; figure hbh = bar...

3 years ago | 1

| accepted

Answered
Find the optimal value to maximize a function
Hi seems to me that R curves goes up as x0 goes closer to zero (but not rqual to zero otherwise you get Inf values) also all ...

3 years ago | 0

| accepted

Answered
Txt file into matrix while skipping certain lines but storing its data
hello please try this I am using readlog to load the data (worth the try) available here : readlog - File Exchange - MATLA...

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 0

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

3 years ago | 2

| accepted

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

3 years ago | 0

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

3 years ago | 0

| accepted

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

3 years ago | 0

| accepted

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

3 years ago | 1

| accepted

Load more