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 een jaar 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 een jaar 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 een jaar 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 een jaar 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)+...

ongeveer een jaar 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...

meer dan een jaar 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...

meer dan een jaar 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...

meer dan een jaar 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...

meer dan een jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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 ...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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...

bijna 2 jaar 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 ...

bijna 2 jaar ago | 2 answers | 0

2

answers

Question


plot graph from cell array
I have loaded 15 excel files into matlab and saved them all as a 15x1 cell. My aim is to create 15 graphs, showing the contents...

bijna 2 jaar ago | 1 answer | 0

1

answer

Question


saving the data in a variable
I have a code which imports a set of csv files from an experiment, and processes this to find out how many particles leave a sys...

bijna 2 jaar ago | 1 answer | 0

1

answer

Question


using grabit with log scales
I have used 'grabit' from the matlab file exchange, to extract the data from a published graph to compare with my own data. The...

bijna 2 jaar ago | 1 answer | 0

1

answer

Question


length of a signal when doing fft and power spectrum analysis
I am undertaking experiments on a sandpile to understand self organised criticality and therefore want to plot a power spectrum ...

ongeveer 2 jaar ago | 0 answers | 0

0

answers

Question


for loop to go through a cell array
I have written a code which tells me how many particles go past a certain x-coordinate for a single time step. The code accesses...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


displaying the total number of times an if statement is true
I have a for loop with an if/else loop nested inside this: xc = particledata{1}(:,5); xc_array = table2array(xc); for b = 1...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


for loop through a cell array
I have a 2001x1 cell array containing the data from 2001 .csv files. Each cell in the array contains the data for 1 time step of...

ongeveer 2 jaar ago | 1 answer | 0

1

answer

Question


indexing in for loop
I am working off a video of 662 continuously moving footballs and I want to track these through 10 frames in the video. I have ...

meer dan 2 jaar ago | 0 answers | 0

0

answers

Question


for loop not working
I have 2 frames of a video containing 700 balls. I want to create a series of subimages, defined by the coordinates of the ball...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


assigning centroids to xy coordinates
I have identified the centroids of a series of circles on 2 frames of a video. I have tried to compute the distance between th...

meer dan 2 jaar ago | 1 answer | 0

1

answer

Question


error indexing must appear last
I have a code which tracks a series of footballs in a video. I have found the coordinates for the balls in the video, and now I...

meer dan 2 jaar ago | 0 answers | 0

0

answers

Load more