Question

Code for looping through a folder and sub-folders within that folder to get .csv files and move them to the main path

So I have a main folder on the desktop called 'Jasper_190319'. Within this folder there are 5 sub-folders, called: 'Jasper_1...

10 days ago | 1 answer | 0

Question

How do I get the value at a particular index?

So I have indices corresponding to values that I want. Is there a MATLAB function that would allow me to output the values when ...

21 days ago | 1 answer | 0

Question

How to use findpeaks function to give me the peak maxima within a particular length of time? How to find slopes of peaks?

I have a plot of data (voltage on y axis, time in miliseconds on x axis). I want to look at the positive peaks on my data within...

21 days ago | 1 answer | 0

Question

Error using shadedErrorBar : length(x) must equal length(errBar)

So I've been trying to use shadedErrorBar for displaying the error bars for three lines of data that I have. I'm having a little...

1 month ago | 0 answers | 0

Question

How to use interp1 to stretch out smaller vector to the size of larger vector?

So I have two vectors, lets call them A and B. A is the smaller vector, and has 1260 columns. B is the larger vector and has 177...

1 month ago | 1 answer | 0

Question

How to use interp1 to stretch out smaller vector to size of larger vector?

So I have two vectors. The first vector has 1260 columns, and the second has 1778 columns. I want to take an average of these tw...

1 month ago | 0 answers | 0

Question

How to normalize size of smaller arrays to match bigger array for analysis, and remove NaNs?

So I have an excel file (attached) that has different trials, all having different column sizes. I want to plot the average of t...

2 months ago | 1 answer | 0

Question

How to magnify y-axis to see plot more clearly

So I am averaging some signals over time, and plotting it to get the figure I've attached. I want to stretch the y-axis in such...

3 months ago | 1 answer | 0

Question

Error: Unable to concatenate the table variables 'Animal' and 'Date', because their types are cell and datetime.

I an trying to normalize a data set of values that I have. I am importing an .xlsx file into MATLAB which contains that data set...

3 months ago | 0 answers | 0

Question

Error: Index in position 2 exceeds array bounds

I'm trying to import an xlsx file into MATLAB and make a simple graph of heart rate vs time. The time vector is from row 386 til...

3 months ago | 2 answers | 0

Question

How do I take data from one column of an Excel spreadsheet and store it as a transposed row in a new Excel Spreadsheet? How do I repeatedly take this column data from different Excel spreadsheets to be transposed as rows in the new Excel Spreadsheet?

So I have a lot of .xlsx files (I have attached one here). I need to take the data from column 7 (Heart Rate), from a specific n...

3 months ago | 1 answer | 0

Answered

Why do I receive an empty array when I read a CSV file with XLSREAD in MATLAB 7.10 (R2010a)?

Maybe try looking at your .csv file and checking whether the values are stored in the form of a string or numerically (the value...

Why do I receive an empty array when I read a CSV file with XLSREAD in MATLAB 7.10 (R2010a)?

Maybe try looking at your .csv file and checking whether the values are stored in the form of a string or numerically (the value...

3 months ago | 0

Question

I am using R2018b. Why does my graph appear so pixelated?

Both the x and y vectors are 1341*1 double. My code is given below: [~,NumDataS]=xlsread('Oxygen_5.14.19_Dex_vitals_001.xlsx...

3 months ago | 1 answer | 0

Question

Error: Index in position 1 exceeds array bounds.

I'm trying to import an xlsx file into MATLAB and make a simple graph of heart rate vs time. The time vector is from row 607 til...

3 months ago | 2 answers | 0