Réponse apportée
How to fit a line over a plot
hello seems to me you want to plot the envelope of your spectra there is a matlab function (Signal Processing Toolbox require...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Baseline removal front fingerprint raman spectra
hello a simple code based on this FEX submission Raman Spectrum Baseline Removal - File Exchange - MATLAB Central (mathworks...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How do I specify a different smoothing factor to each datapoint individually?
hello that was my first idea ; coding a first order recursive filter with variable forgetting factor (or pole) doing it forw...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Making two peaks into one
hello again have a look at the help of findpeaks; use this argument of findpeaks to keep only the tallest peak : MinPeakDist...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
how to automatically find the location of the element/text in excel
hello here you are : T = readcell('example.xlsx'); % T = 6×3 cell array % {'Stage'} {'health' } {'Object'} % ...

presque 3 ans il y a | 0

Réponse apportée
from figure file to mat file?
hello you can use that function to extract data from figures function data = extract_data_from_figures(filename) %% % % ...

presque 3 ans il y a | 0

Réponse apportée
How do I colour different segments of a bar within a bar graph different colours (red or green) depending on if data has reached a threshold value
hello maybe this ? (simple demo) % stacked plot with threshold (lower => green, above th => red) weigths = (1:10); force =...

presque 3 ans il y a | 0

Réponse apportée
Best baseline correction method for quasi-static response
hello this seems to be a reccurent topic on this forum... so here we go again... the best advice I can give are : 1/ make s...

presque 3 ans il y a | 0

Réponse apportée
Measure duration of peaks in graoh
hello maybe this ? use that demo on your data and let me know the plot should look better on your PC compared to what is di...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Calculate LF HF for ECG using Welchs PSD
hello this would be my suggestion the nfft is choosen based on what frequency resolution (df) you need remember that df = f...

presque 3 ans il y a | 0

Réponse apportée
how to search a specific element/text from excel and then show if it is true/false
hello simply do that the answer is logical 1 (true) as soon as contains at least one 1 (logical) , i.e. one instance of Fusa...

presque 3 ans il y a | 0

Réponse apportée
Amplitude of a signal
hello basically you want to plot the envelope of your data , there is a function for that : envelope Envelope de...

presque 3 ans il y a | 2

Réponse apportée
Automatically assign legend name to set of data
hello maybe this ? now you have y1,y2,... in your legend n=input('Enter the number of curves you want to fit: '); ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to read values from 'Parameters' in a .ssc file?
hello maybe this can help you the output is a structure (size depends of number of variables in your ssc file here we get :...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to shift a curve to superimpose it with another one on the same figure ?
hello a simple demo below you can easily adapt to your data (not provided) x = 0:0.01:0.86; y1 = 1./cos(x+0.25)+0.01*rand(si...

presque 3 ans il y a | 0

Réponse apportée
Bi-linear (piecewise) curve fitting
hello here you are all the best for this data file the max point of the red curve is displayed on the graph xred_max = ...

presque 3 ans il y a | 0

Réponse apportée
How to specify labels on stacked bar plot
Hello maybe this ? y = []; states = 3; for i = 1:states a = rand(5,1); b = rand(5,1); y = [y; [[a, b]; ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I would like to calculate the frequency response function (FRF) for my input frequency and output response from accelerometer
hello why are you using a single frequency tone for measuring FRF's ? normally we want to excite all frequencies (otherwie y...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
differentiate between month in dataset.
hello maybe this ? % simplified code for one year scalar input years = 2023; % mm = (1:12); % monthes days_per_month =...

presque 3 ans il y a | 0

Réponse apportée
getting errors while trying to plot
the error message is quite clear Unable to find file or directory 'negm_profiles.txt'. this file is not in your directory do...

presque 3 ans il y a | 0

Réponse apportée
Help with computing FFT
hello here some suggestions and mods I did in your code remove the initial transient (t< 0.1 s) detrend data (so you don't ...

presque 3 ans il y a | 0

Réponse apportée
How to put fitting constraints on smoothing splines
hello this is the poor's man suggestion, (no Curve Fitting toolbox, no spline smoothing) try it and let me know load data...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
the maximum difference bewteen lines from a loop and plot
hello see updated code below clear all; close all W_takeoff = 10000; W_landing=6000; S = 20; AR = 5; cd0 = 0.02; k = 1...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Why am I getting the same colour of the legend for the last 2 plots?
add one more line at the end of your script, add : hold off

presque 3 ans il y a | 0

Réponse apportée
How to get matlab to write txt file without a column from the big text file its split from
hello this is a minor change to your code look for the two lines where I added the comment : % <= here basically I creat...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Analyse Time Series Data based on Seasonality
hello I wished I had some files to test the code , but let's go directly to the task I simply extracted from the filename th...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to shift data sets automatically
hello myabe this ? I took the options to have both peaks overlaid and also the two curves have same initial y value This i...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
I want to improve the mesh of my graph ?
hello sure you can use interp2 see example below I opted for spline method for a smoother surface rendering clear clc...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
adding contour lines to pcolor plot
hello again maybe this ? figure pcolor(dateVector, depth, combinedaverages') set(gca, 'YDir','reverse') shading flat ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to fit data on a specific region, using lsqcurvefit or any other?
hello fyi, some results obtained with the poor's man solution (based on fminsearch) NB : I changed your log10 to log in my c...

presque 3 ans il y a | 0

Charger plus