Community Profile

photo

C.G.


Last seen: 8 dagen ago Active since 2020

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 2 answers | 0

2

answers

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


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

ongeveer een maand ago | 1 answer | 0

1

answer

Question


find the lowest value in a selection of data
I have a matrix of data where I am working with columns 5 and 6. I have divided the data into sections based on the values of co...

ongeveer een maand ago | 1 answer | 0

1

answer

Question


sum only consecutive 1's in matrix
I have a matrix of data where I want to go down each column in the matrix, and sum the occurences where 1's occur consectively. ...

ongeveer een maand ago | 2 answers | 0

2

answers

Question


identifying if a number stays the same between files
I have 3 .csv files. I want to know if the numbers in column 5 of the first file stay the same or change between the next 2 file...

ongeveer een maand ago | 1 answer | 0

1

answer

Question


finding numbers below a threshold and doing calculations on them
I have a model of a box filled with particles. I have the velocity and coordinates of each particle in the box. I have divided t...

ongeveer 2 maanden ago | 1 answer | 0

1

answer

Question


calculating angle between line of best fit and x axis
I have a set of coordinate points from a picture. I have used polyfit to find the line of best fit of these, but I want to find ...

ongeveer 2 maanden ago | 2 answers | 0

2

answers

Question


using imagesc to plot a matrix of data
I am trying to see how temperature varies with different input parameters. I have 2 input parameters which vary between 0.1-0....

ongeveer 2 maanden ago | 1 answer | 0

1

answer

Question


reshaping multiple data sets
I have a 50x4 double. I want to reshape each column of the matrix by taking the mean of every 10 elements. I have tried writin...

ongeveer 2 maanden ago | 1 answer | 0

1

answer

Question


looping through columns of a matrix and saving output
I have a matrix which is 1000x4. Each column is a different experiment run. I want to loop through each column of the matrix a...

ongeveer 2 maanden ago | 1 answer | 0

1

answer

Question


Array indices must be positive integers or logical values.
I keep getting issues saying 'Array indices must be positive integers or logical values', regarding the line ' c(1:(length(c)+...

2 maanden ago | 2 answers | 0

2

answers

Question


using cumsum for a vector
I have a variable GT2, which is a 1x900 double. I am trying to do a cumulative sum, where for each cell it does a cumulative su...

3 maanden ago | 1 answer | 0

1

answer

Question


converting an excel formula into matlab
I've written the formulas out that I require in excel, but now I want to put these into matlab. The current matlab code I have...

4 maanden ago | 2 answers | 0

2

answers

Question


Accessing elements in a structure
I have 2 matlab files, both containing 2 elements: velocity and points. i have loaded these two files into a structure, but now...

4 maanden ago | 1 answer | 0

1

answer

Question


indexing a loop to run through multiple files
I have experimental data in multiple csv files. Ive written the code I want and checked this works by only inputting 1 specifi...

5 maanden ago | 1 answer | 0

1

answer

Question


memory errors with large amounts of csv files
I am running a model which produces thousands of csv files which i need to read into matlab. This particular run generated 27,17...

9 maanden ago | 1 answer | 0

1

answer

Question


using the title of excel spreadhseets to name graphs
I have 39 excel spreadsheets which I have inputted into matlab and created a subplot of grpahs from. I would like to name the r...

10 maanden ago | 1 answer | 0

1

answer

Question


using natsortfiles to import csv files correctly
I have been looking for a way to import many csv files into matlab in the correct order (e.g. csv1, csv2, csv3). My csv files h...

10 maanden ago | 1 answer | 0

1

answer

Question


find and save the rows where condition is met
I have a 1x3001 cell, 'y', and I want matlab to loop through all the cells and save all the rows where the value in column 2 is ...

10 maanden ago | 1 answer | 0

1

answer

Question


loop to identify new particles
I have the particle Id and y coordinates for every particle in my model over 3000s. My loop currently tells me how many grains...

10 maanden ago | 1 answer | 0

1

answer

Question


if number is already recorded don't record
My code reads data from multiple csv files, and identifies how many balls move past a certain y coordinate in each time step and...

10 maanden ago | 1 answer | 0

1

answer

Question


sum contents of array in groups of 10
My code produces a variable 'grains' which is a 1x3001 double. I want to sum together the numbers in the first 10 cells, and re...

10 maanden ago | 1 answer | 0

1

answer

Question


Operands to the || and && operators must be convertible to logical scalar values.
I am trying to run a series of data thorugh a if loop, to sum the amount of numbers between -0.13 and -0.16 found in each. When...

10 maanden ago | 1 answer | 0

1

answer

Question


display value if it lies between x and y
I have a series of csv files, which I want to input into a for loop, which tells me if any of the numbers in column 5 of the csv...

11 maanden ago | 1 answer | 0

1

answer

Question


changing the name of multiple csv files in a folder
I have a folder containing 3000 csv files. All of these are named in the format: cor0.1 sc10 fc0.1_0.csv. I want to change the ...

11 maanden ago | 2 answers | 0

2

answers

Load more