Question

How can I deleate or replace with a 0 all the Nan, Inf anf -Inf values in a time series from the biggining to the end?

Ive got a time series from Simulink that changes its size every time I run the simulation and I want to get rid of all the Nan a...

3 months ago | 2 answers | 0

Question

How can I device a time series A by a Time series B if they are the same size?

I have 2 time series, they are both the same size but I don't know how to devide time series A by time series B. Also, Once is ...

3 months ago | 1 answer | 0

Question

How can I code so if there is a transient segment, then a steady segment, and a transient segment again, and the timelapse is less than 120 seconds, then make that steady segment transient.

%Determine Segments of percent load devided in Transient and Steady clearvars -except PercentLoad Time %Get rid of noise by ...

3 months ago | 0 answers | 0

Question

How can I create a legend on the interception of 2 lines on a plot with its coordinates?

I have this code so far, I want to get the interceptions of plot(CrankAngle1,n1) and plot(xl(:)*[1 1], [1;1]*[0.5 0.9], '--r'). ...

3 months ago | 0 answers | 0

Question

How can I interpolate a point in a x,y graph given only one of these values and being the point on the line?

I have a sets of graphs where I want to show 2 points on each plot. One on .5 (y value) and the other on .9 (also y value) I ha...

3 months ago | 0 answers | 0

Question

How can I code so: if a value on an array is false(0), and there is another false later on the list,all the 1's between (true) all the 1's turn into 0?

After processing some data I have ended up with a boolean. Now I want to gropup different sets of data by 0's and 1's but if the...

3 months ago | 2 answers | 0

Question

Can I write a script that keeps rows that are within 5% and 10 cells above and below a specific cell?

The idea is to have a script that takes stable data eleminating the peaks and valleys. I want to have that cell compared with ...

4 months ago | 1 answer | 0