답변 있음
readtable disfigures the CSV file header
hello here you are : headerRow = {'ID'} {'par_1 (mol)'} {'par_2 (meter^3)'} {'par_3 (kg/L)'} data = readtable('he...

대략 3년 전 | 1

답변 있음
MinPeakProminence error in findpeaks - detecting unwanted signal
hello again this would be my suggestion hope it helps load ('Data.mat'); [PKS,LOCS,W,P] = findpeaks(y, 'MinPeakProminenc...

대략 3년 전 | 1

| 수락됨

답변 있음
How do I plot the average curve from hundreds of vehicle speed curves and further show only the average curve?
hello try this as every vehicule will have a different range of x data (pos) , you need to first interpolate the data before...

대략 3년 전 | 0

| 수락됨

답변 있음
I want to extract all cell data inside
hello maybe this ? result : out = 1×9 cell array {'o'} {'w'} {'t'} {'p'} {'n'} {'r'} {'b'} {'q'...

대략 3년 전 | 0

| 수락됨

답변 있음
I have 5 arrays (A,B,C,D,E) of size(20x1). 20 Rows represents 20 models. I want to rank best model based on minimise (A,B), maximise (C,D,E). Any hint will be helpful.
maybe this ? AB= rand(20,2); CDE=rand(20,3); ABinv = 1./AB; % minimum(A,B) replaced by maximum of it's inverse ABinvCD...

대략 3년 전 | 0

| 수락됨

답변 있음
How to get specific tick axis values equally spaced, independently of their values?
hello 1/ seems to me you simply mixed x and ylabels 2/ you may want the Y dir to be put back in "normal" mode result obtain...

대략 3년 전 | 0

답변 있음
I have a set of data that I need to separate into unequal intervals in order to calculate the RMS value of these data (The data points are continuous over time)
hello maybe this ? I know I reinvented the histogram ( :)) , in few lines... % Torque post processing data = readmatrix("...

대략 3년 전 | 1

답변 있음
How to find month wise mean and std from data of many years
hello try this T = readtable('data.csv'); data = table2array(T(:,2:end)); dates = T(:,1); month_mean = mean(data,2); mon...

대략 3년 전 | 0

답변 있음
Averaging different initial conditions over 10 years
nothing fancy here , but it does the job.... % create some dummy data ic = 160; years = 10; data = rand(365,ic*years); % ...

대략 3년 전 | 0

답변 있음
'Index exceeds array dimensions. Index value 0 exceeds valid range [1-12] for array 'A'.' I get this error when I run the code? Can you please help?
hello I replaced nansum which is outdatted by sum with omitnan parameter seems to work, at least for the input data I picked ...

대략 3년 전 | 0

답변 있음
Hello, I want to limit the number of coordinates generated by the method bwboundaries or boundary while having the same step size.
hello again I could reduce the amount of data by a factor 3 roughly , more could be done if the large "straigth" lines d...

대략 3년 전 | 0

| 수락됨

답변 있음
Remove outliers until there are none left
hello I updated the end of your code the plot is for myself to see the difffences before / after thresholding (if hot spots ...

대략 3년 전 | 0

| 수락됨

답변 있음
in R2023a, A text file, containing huge data in one column,How arrange data in 6 colum.where The first six number at the first Row and second six number in second Row.
hello to load your text file use readmatrix Read matrix from file - MATLAB readmatrix - MathWorks France then you can use th...

대략 3년 전 | 0

답변 있음
how to make my EWMA filter work
maybe this ? n=40; b=0.7; a=(1-b)/(1-b^5); w=a*b.^[0:4]; c=ones(1,n); avg=zeros(1,n); for k=1:n-4 avg(k)=sum(w...

대략 3년 전 | 0

답변 있음
gps average of a track
hello try this %--- smooth of 6 laps with some drift --- laps = 6; N = 1000*laps; t = linspace(0,2*pi*laps,...

대략 3년 전 | 0

| 수락됨

답변 있음
lsqcurvefit with 2 points trouble
maybe you want a parabola , you can use polyfit to obtain the best fit : x = 2e-5:2e-5:18e-5; y = [0.997 0.991 0.983 0.974 0....

대략 3년 전 | 0

| 수락됨

답변 있음
How to separate high and low concentration areas in a given dataset as below?
hello try this maybe not the shortest route to final destination, especially if like me you don't have access to hist3 funct...

대략 3년 전 | 0

| 수락됨

답변 있음
Measure phase between two discrete signals
hello I tried this : averaged fft spectrum, to find a dominant peak at 160570 Hz band pass filtered both signals zero c...

대략 3년 전 | 0

| 수락됨

답변 있음
Finding max peak between two datetime values
hello try this clear all clc load EFFEKT %EFFEKT contains a value for every our of the year Abonnemang=21200; dt = datet...

대략 3년 전 | 0

| 수락됨

답변 있음
Updating a graph by changing which column of a matrix is being plotted to create an animation.
hello try this L = 0.3000; X=linspace(0,L,4); Amplitude=[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16]; figure(1) p = p...

대략 3년 전 | 0

답변 있음
How to stop time loop when steady state is reached?
hello think I have understood your difference computation must be indexed with j , so it must be inside the for loop I used...

대략 3년 전 | 1

| 수락됨

답변 있음
How to find the exact frequencies from a spectrogram plot?
hello a FFT based method will always give you the result with a frequency resolution that depends on the fft length and sampli...

대략 3년 전 | 0

| 수락됨

답변 있음
Want to use nested For loop
hello here you are also you are plotting a complex valued array, so I assume you wanted to take the bas of it first abs(z) ...

대략 3년 전 | 1

답변 있음
Help improving speed of this code/loop
hello maybe this runs a bit faster ... my PC is not fast at all , and this loop needs less than 1 s to complete. I am not sure...

대략 3년 전 | 0

답변 있음
Can you modify my code?
hello I can make following suggestions : you can use readmatrix instead of load to read excel files also gradient exist n...

대략 3년 전 | 0

| 수락됨

답변 있음
Shading in the SEM region surrounding a line plot
hello Angela and welcome back here is my suggestion based on surface seems also that there is no grid in your reference pictu...

대략 3년 전 | 0

| 수락됨

답변 있음
How to add together values in matrix and replace the empty spaces with zeroes
hello try this : T = [0 0 0 2 3 4 0 0 0 5 2 1]; % input data T_out = zeros(size(T)); % find start and end indexes of...

대략 3년 전 | 0

| 수락됨

답변 있음
How to compute the lap count in the data
hello this would be my suggestion : transform your cartesian data into polar ones and count how many complete revolution you...

대략 3년 전 | 1

| 수락됨

답변 있음
Frequency based on acceleration data
hello I tried to do my best finding the fft length and overlap that gives me the best info - as your signal is quite unstation...

대략 3년 전 | 0

답변 있음
how to find the location of a value
hello try this see the peakseek function in attachment (faster and simpler alternative to findpeaks - you can also use findp...

대략 3년 전 | 0

더 보기