Community Profile

photo

C.G.


Last seen: 6 Monate vor Aktiv seit 2020

Statistiken

  • Thankful Level 4

Abzeichen anzeigen

Content Feed

Anzeigen nach

Frage


subtracting consecutive elements from arrays
I have 2 arrays. To generate e, I want to subtract d from Q. After the first 10 times, I want to cycle back through Q for the ne...

6 Monate vor | 1 Antwort | 0

1

Antwort

Frage


subtracting arrays from each other
I have 2 arrays. I want to subtract b from a, but starting at the second element of b eg. 16-14, 24-20 etc. The result should b...

7 Monate vor | 1 Antwort | 0

1

Antwort

Frage


if loop to save number or call NaN
I have 2 variables, both with 8 numbers in them. I want to create a new variable which has 10 numbers in it using a for and an...

10 Monate vor | 1 Antwort | 0

1

Antwort

Frage


if loop to find values in a variable
I have 2 arrays of numbers, t and Q. I want to use an if loop to do the following: find if tfind is present in the variable t. ...

10 Monate vor | 1 Antwort | 0

1

Antwort

Frage


degrees of freedom chi2inv
I am using a code given to me by somebody else to generate a 95th percentile for my data, and one of the lines in my code is: n...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Generate random numbers with truncated Pareto distribution
I am wanting to generate a series of random numbers from a truncated Pareto distribution. I can see there is a function in matla...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Beantwortet
removing specified data from variable
As I said, I eventually want to choose from a gaussian distribution. This would mean I would get a large amount of values in the...

mehr als ein Jahr vor | 0

Frage


removing specified data from variable
I have a 100x2 dataset I am working with. I also have 2 random distributions of data. I want to modify my original dataset in ...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


if column 1 is nan, make corresponding number in column2 nan
I have the code below which randomly assigns 10% of the dataset to Nan. However this only turns column 1 to NaN. How can I make ...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


fit data trend with equation
I have the datset attached, and i'm trying to find an equation which describes the trend. I have tried using basic fitting but...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


changing time interval of interest in a dataset
My code below uses my data, and follows the equation Q_i+1 - Q_i/time The time interval of interest changes as defined by time....

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


Changing numbers summed together in for loop
I have a code below, which minuses one value from another and divides it by the defined time interval (dt). This code works fo...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


looping through multiple numbers
I have written a script, which tells me which rows of A are above the threshold, and then the difference between the numbers in ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


r squared comparing sine waves
I have a dataset to which I have asked matlab to fit a sine wave. I want to find the r^2 value to see how well the sine curve I ...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


fit a sine wave to a set of data points
I have the dataset attached and the code below to try and fit a wave to the data. Im getting the following error which I can't g...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


moving sum over multiple time windows
I have a dataset Q_opss, and I want to find the maximum moving sum of the dataset over lots of different windows. I have the co...

fast 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


logarithmic binning data in matlab
I have a dataset, and I have been told to bin the data using logarithmic binning. How would I go about logarithmic binning this...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


plotting a CDF with 2 logs axis
I have a time series of data, and I want to plot a CDF for this. I have plotted the cdf for this, but it is on normal axis. Is ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


moving mean over 5 cells
I have a dataset where im trying to find the mean of every 5 cells and then divide this by 5 I have the code below, but I have ...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


error using etime (datevec)
I have a csv file with times for experiment start and end. I'm trying to use etime to work out the time difference but im gettin...

etwa 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


error using textscan with csv files
I have been given a code to process some data in a csv file. When I run this I get the error below. Can anybody help? fid = fop...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


interpolating data to different sample rate
I have 2 data sets I want to correlate. One is sampled every second, and one is sampled at a much smaller interval (attached). I...

etwa 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


resampling data into equal intervals
I have a dataset (attached) which has been sampled at unequal intervals, but for processing I need to resample this to every sec...

etwa 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


saving figure with title as name of file
I have 4 .mat files. I extract the data from these, plot them and save each figure. Now, I want the title of the plot, and the ...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


looping through 2 .mat files
I have 2 matlab files with data in. Im trying to get my code to loop through both files and put the data into the 6 pre-assigned...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


making repetitive code less clunky
My code works, but its very long winded. I didnt know if there was a way this could be simplified to get the same outcome? I wa...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


plotting multiple vertical lines on a graph
Im currently using the code below to plot vertical lines on my graph at 0.5 intervals, but I want to change this to plot at ever...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


plotting a line of best fit using a for loop
I have the code to plot a line of best fit through my data but now I am trying to do this for multiple data sets in a for loop b...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


store multiple outputs into one matrix
My code currently produces 14 individual variables (x1-7 and y1-7), I am currently plotting these on a graph using hold on state...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


find maximum number in a range of data
I have a matrix T, and I have asked it to find all the rows where the value in column 5 is between 2 numbers and save these as S...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Mehr laden