Question

Error: Conversion to struct from single is not possible

Hi All, I had a question regarding inserting data from a cell array into a preexisting structure. The variable "phases" is a 3 ...

6 months ago | 1 answer | 0

Question

sort a cell array of file paths by portions of the file path

HI All, I have an output from the dirrec function, which is a 12x1 cell array, where each cell is a file path. Example below. ...

7 months ago | 0 answers | 0

Question

Gantt chart with superimposed values

Hi All, I was wondering if there is a way in Matlab to create a gantt chart using the min/max of variable? I've read a little b...

7 months ago | 0 answers | 0

Question

Problems with the Mode function

Hi Everyone, Happy New Year! I'm having problems with the "mode" function in Matlab 2018a. I have a 1x1979253 single "x", whe...

7 months ago | 1 answer | 0

Question

phase correlation coefficient between 2 vectors of unequal size

HI All, I have a question regarding some circular statistics. I am trying to calculate the circular correlation coefficient "rh...

9 months ago | 0 answers | 0

Question

Finding p values that are significant and copying .mat files into a separate folder

Hi All, I have a series of .mat files in the directories "Pos" and "Neg". Within each mat file, there are a series of variabl...

10 months ago | 0 answers | 0

Answered

problems with .eps files / matlab figure files

This was figured out. The flag '-painters' added to the print command fixes these issues.

problems with .eps files / matlab figure files

This was figured out. The flag '-painters' added to the print command fixes these issues.

11 months ago | 0

| accepted

Question

Circ_Mean Confidence Interval Issues (Circ_Stats toolbox) - Also posted on File Exchange

Hi All, I have posted this question on the file exchange for Circ Stats as well. My question - I'm trying to calculate the c...

11 months ago | 0 answers | 0

Question

problems with .eps files / matlab figure files

Hi All, I have a couple questions detailed below. I am using the command below to save out some polarhistograms to .eps file...

11 months ago | 1 answer | 0

Question

savefig in loop leads to an empty figure

Hi All, I'm trying to use savefig in a loop to save some polarhistograms as .fig files and for some reason it saves it proper...

11 months ago | 1 answer | 0

Question

Peristimulus Time Histogram & Smoothing

Hi All, I have a couple questions regarding computation of a peristimulus time-histogram, computation of a spike average from...

12 months ago | 0 answers | 0

Question

Looping through folders and perform script

Hi All, I have data that is in 3 subdirectories "LFP", "Pos", and "Neg". Each folder has the same number of .mat files in it...

12 months ago | 1 answer | 0

Question

Binning data into 1 ms bins and count events

Hi Everyone, I have an experiment that is recorded over a timeperiod = 2.63610e+03 (in seconds). During my experiment, I was...

12 months ago | 1 answer | 0

Answered

returning values of a matrix between two values

Hi, I tried that, but I get the error "Index in position 2 exceeds array bounds (must not exceed 5272240)". Do you h...

returning values of a matrix between two values

Hi, I tried that, but I get the error "Index in position 2 exceeds array bounds (must not exceed 5272240)". Do you h...

12 months ago | 0

Question

returning values of a matrix between two values

Hi Matlab Experts, I've got a basic question. If I've created a matrix: data_bounds = [event_samples(1),event_sample...

12 months ago | 2 answers | 0

Question

Problems with indexing into an array with nan (indexing on 2 variables)

Hi All, I'm having trouble using a logical variable ( *Bandphase_logical* = 9x5272240 logical) to find "true" events in anoth...

12 months ago | 1 answer | 0

Answered

Using matlab with data on an external hard drive

Hi Walter, Thanks for your response! I think that makes sense. I'm now looking into some of the USB-C SSD and HDD storage de...

Using matlab with data on an external hard drive

Hi Walter, Thanks for your response! I think that makes sense. I'm now looking into some of the USB-C SSD and HDD storage de...

12 months ago | 0

Question

Using matlab with data on an external hard drive

Hi Everyone, I'm trying to run some data analysis through matlab. My data is quite large, and I am currently off site (so th...

12 months ago | 3 answers | 0

Question

Filter a structure by a value of a field

Hi All, I have data in the following structure called "recEv". <</matlabcentral/answers/uploaded_files/127603/Screen%20Sho...

1 year ago | 1 answer | 0

Question

Create a logical vector

Hi All, I have a cell array, where each cell in the first row contains a double of various lengths. Each double corresponds ...

1 year ago | 1 answer | 0

Question

Easy way to divide a field in a struct by a number?

Hello All, I have a 5394 x 1 struct with 2 fields labeled "cluster" and "spx_time". I'd like to divide all values in the "sp...

1 year ago | 1 answer | 0

Question

Sorting and Distributing Excel Files in Matlab

Hi Matlab Experts, I was wondering if there is a way to sort and distribute an excel file automatically with Matlab? Essenti...

2 years ago | 0 answers | 0