Beantwortet
Find peaks and valley of sinusoidal curve
hello @Maria Inês So far I understand you want the strain plot have all top peaks being on y = 0 line , like in your reference ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Set a specific spatial frequency for my Guassian generated dots
hello maybe this ? now you can specify the x and y direction spacing with dx and dy (the total number of points is constant)...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Missing new line after Datapair
hello again this is what I believe is what you wanted as output format (table) T = 681×8 table Frequenz PK_MAX...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to make smoothen 3D surf plot?
hello I can make you these two suggestions , one is based on smoothn (see Fex : smoothn - File Exchange - MATLAB Central (mat...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Filled contour/colorized 2-D surface plot with large 3-D array (10000 x 3)
hello maybe this ? your data is large but lacks some refinement in the central area of the peak 90% of your data is Z close...

etwa 3 Jahre vor | 1

Beantwortet
How do I add text detailing the bar's value to the top of each bar graph to 3 significant figures
hello again this would be my suggestion %% Plot Light Normal Bar Graph of Energy Consumption based off Power Curve fi...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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'} % ...

etwa 3 Jahre vor | 0

Beantwortet
from figure file to mat file?
hello you can use that function to extract data from figures function data = extract_data_from_figures(filename) %% % % ...

etwa 3 Jahre vor | 0

Beantwortet
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 =...

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 2

Beantwortet
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: '); ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 :...

etwa 3 Jahre vor | 1

| akzeptiert

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

etwa 3 Jahre vor | 0

Beantwortet
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 = ...

etwa 3 Jahre vor | 0

Beantwortet
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]; ...

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 2

| akzeptiert

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

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

etwa 3 Jahre vor | 0

| akzeptiert

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

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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

etwa 3 Jahre vor | 0

Mehr laden