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

11 Monate ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 2 answers | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 0 answers | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

mehr als ein Jahr ago | 1 answer | 0

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

fast 2 Jahre ago | 0 answers | 0

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

etwa 2 Jahre ago | 1 answer | 0

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

etwa 2 Jahre ago | 1 answer | 0

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

etwa 2 Jahre ago | 0 answers | 0

Question

cropping an image using centroids

I have an image of multiple footballs, where I have located the centroid of each football in the image. I want to crop the ima...

etwa 2 Jahre ago | 1 answer | 0

Question

finding points in a video

I have a video of a series of footballs. I have plotted the centroids of each football in each frame, which has allowed me to wo...

etwa 2 Jahre ago | 1 answer | 0

Question

tracking the rotations of a translating ball

My code tracks the translation of a series of footballs and plots velocity, but now i want to track the rotation of the balls an...

etwa 2 Jahre ago | 0 answers | 0

Question

displacement of particles in a video

In my code, it reads a video and converts it to a number of instantaneous frames. Then it binaries the balls and finds the centr...

etwa 2 Jahre ago | 1 answer | 0

Question

calculating velocity from centroids

I have a code which calculates the position of centroids of multiple particles through each of the video frames. I am now trying...

etwa 2 Jahre ago | 2 answers | 0

Question

motion tracking multiple objects

i am trying to motion track multiple mini footballs. I generated a code to track 1 object using youtube, but im struggling to se...

etwa 2 Jahre ago | 1 answer | 0

Question

video in a figure

I have imported a video into MATLAB but when I play this in a figure, the figure dimensions are different to that of the video. ...

etwa 2 Jahre ago | 2 answers | 0

Question

for end loop variable not saving

I am relatively new to coding, and I am trying to track a ball on a pendulum following an example i found online. However, in o...

etwa 2 Jahre ago | 1 answer | 0