Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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; ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 2 ans il y a | 1

| A accepté

Réponse apportée
3D curve fitting
hello again I can make you this suggestion I devised that your curve could be parametrized by these 2 equations : z = a + b...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Perform peak fitting, find peaks and label, and integrate certain areas
hello fixed some minor bugs hope it helps % Load Raman data from a text file data = readmatrix('03--Spectrum--006--Spec.D...

plus de 2 ans il y a | 2

Réponse apportée
What to do in matlab when working with images
hello first code example : %% Initalize the data dataDir= fullfile(pwd); % select appropriate directory exts = {'.jpg','...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Batch processing images for downsampling
hello see example below - adapt to your own needs %% Initalize the data dataDir= fullfile(pwd); % select appropriate direc...

plus de 2 ans il y a | 0

| A accepté

Réponse apportée
Frequency response using input and output parameters only.
hi you can make a FRF plot of an unknown system from input / output data with tfestimate (requires the Signal Processing Toolb...

plus de 2 ans il y a | 0

Réponse apportée
Formulating a part of a given circle
hello try this i let you double check that the segment has only unique values on the x axis and do match L and h parameters...

plus de 2 ans il y a | 1

| A accepté

Charger plus