Question

saving 3 dimensional single data in an Excel file

Hello all I have three dimensional epoched data (EEG data, 32*300*14 single ( channels x time points x trials) and I need to s...

2 months ago | 2 answers | 0

Question

deleting NaNs in a column without changing the size of the matrix

Hi I used this script to delete a few NaN s I have in column 5 of a file, However, the size of the matrix changed too. How sho...

3 months ago | 1 answer | 0

Question

How to insert rows into a matrix

Hi I have a matrix (748*6). I need to insert one row after every 3rd row. How should I do that? the resulting martix should be ...

4 months ago | 1 answer | 0

Question

How to force a for loop to continue?

Hi, I need to copy data from individual excel files from 33 participants, and paste all in one excel file. I did it for the fir...

9 months ago | 1 answer | 0

Question

How to substitute some of the values in a matrix

Hello all I have a matrix (748*6 double) including numbers and NaNs. The first column is test item numbers (defined already as ...

9 months ago | 1 answer | 0

Question

multiplying a value and create a matrix of a certain size

The outcome of this line B=strcat(num2str(i),',',str3); is B =4,1,1. I would like to multiply B and create a matrix (a c...

10 months ago | 1 answer | 0

Question

How to read all the .txt files in a folder and convert them to matrixes?

I have a bunch of txt files in a folder (version 1,1.txt; version 1,2.txt; etc.). A sample file is attached. I need to convert...

10 months ago | 1 answer | 0

Answered

Replacing specific rows in a matrix.

merged file (748*6) is the content of the excel file I sent you. Ive just started using MATLAB. Type= mergedData(:,2); accu...

Replacing specific rows in a matrix.

merged file (748*6) is the content of the excel file I sent you. Ive just started using MATLAB. Type= mergedData(:,2); accu...

11 months ago | 0

Question

Replacing specific rows in a matrix.

I would like to replace the cells with the following features (those whose types are 9 or 12 and their ID is one of these number...

11 months ago | 2 answers | 0

Question

How to delete specific rows in a matrix?

Hello all, I have a matrix including two columns and some rows. I have numbers and zeros in the first column and numbers and em...

12 months ago | 1 answer | 0

Question

How to get the name of a specified excel sheet?

Hello, Is there any way I could get the name of of a specified excel sheet? For example, sheet=2; When I use xlsfinfo, sheet n...

12 months ago | 0 answers | 0

Question

How to read .txt file with numbers and texts?

Hello. I have a .txt file including numbers and texts separated by tabs. I have tried dlmread, csvread, etc but not still able t...

12 months ago | 1 answer | 0

Question

adding data to an existing excel file

Hi, I have the following script. I want to write the "data" from 36 folders to be written in one excel file, one at a time. F...

12 months ago | 1 answer | 0

Question

How to add data to an existing excel file?

Hi. I have about 70 excel files. I need to collect the data from the individual files and write them all in one excel file. My p...

12 months ago | 0 answers | 0

Question

How to replace values with nan when there is a condition?

Hi. How could I add a condition to the following? I want NaN in accuracyC if its counterpart in RTc is nan but not when the valu...

1 year ago | 1 answer | 0

Question

Replacing a value with nan

Hello all. I want to replace a value that I have in accuracyC with nan if its counterpart value is nan in RTc. RTc and accuracyC...

1 year ago | 2 answers | 0

Answered

Average matrices by limiting the content

1 6 661 658 875 836 818 1133 533 600 658 NaN 1 6 531 690 937 741 NaN 630 486 921 1022 652 1 6 774 884 1208 985 NaN 773 NaN 722...

Average matrices by limiting the content

1 6 661 658 875 836 818 1133 533 600 658 NaN 1 6 531 690 937 741 NaN 630 486 921 1022 652 1 6 774 884 1208 985 NaN 773 NaN 722...

1 year ago | 0

Question

Average matrices by limiting the content

I have two columns (Block,1,2,3; and Type, 6,7,8,12,13,14). Also, I have 10 columns of Reaction times for 10 people. The number ...

1 year ago | 1 answer | 0

Question

Multiply a column by a number

How Could I simply multiply each element of this array by 4? A=array(:,6);

1 year ago | 2 answers | 0

Question

Read .dat files

I wonder how to get MATLAB read an event file (generated by Neuroscan) in MATLAB. I tried load, csvread, dlmread. None worked. T...

1 year ago | 1 answer | 0

Question

file names with a shared beginning

I have different files in a folder, but I want to select files such as 1_1_11.ev2, 1_2_13.ev2, with this common part "strcat(num...

1 year ago | 1 answer | 0