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

alrededor de 2 meses hace | 0

| aceptada

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

alrededor de 2 meses hace | 1

| aceptada

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

2 meses hace | 0

| aceptada

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

2 meses hace | 1

| aceptada

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 1

| aceptada

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 1

| aceptada

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 1

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 1

| aceptada

Respondida
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

2 meses hace | 0

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

2 meses hace | 0

| aceptada

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

2 meses hace | 1

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

2 meses hace | 0

| aceptada

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

2 meses hace | 0

| aceptada

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

3 meses hace | 0

| aceptada

Cargar más