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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 2

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

Cargar más