Question

column labels with shared ending

Hello all, I read a table saved in an excel file in MATLAB. I have used a "for loop" to open similar tables with different da...

8 months ago | 0 answers | 0

Question

average selected columns with labels

hello all, I have the attached data. It shows a part of my data. I need to average selected coumns in red only. I need to tell ...

8 months ago | 1 answer | 0

Answered

how to create a matrix in a for-loop

Thank you so much. This partly works. There is one problem though. We should have "list_of_all_electrodes" constant for all part...

how to create a matrix in a for-loop

Thank you so much. This partly works. There is one problem though. We should have "list_of_all_electrodes" constant for all part...

8 months ago | 0

| accepted

Answered

how to create a matrix in a for-loop

Thank you for your reply. I did not write how the output was produced becuase I did not want to make more confusion. This is t...

how to create a matrix in a for-loop

Thank you for your reply. I did not write how the output was produced becuase I did not want to make more confusion. This is t...

8 months ago | 0

Answered

how to create a matrix in a for-loop

Thank you very much for your detailed resopnse. Using true in that context indicates that you do want the appropriate option t...

how to create a matrix in a for-loop

Thank you very much for your detailed resopnse. Using true in that context indicates that you do want the appropriate option t...

8 months ago | 0

Question

how to create a matrix in a for-loop

Hello all. I have 20 participants. After processing their data, I got a table of 1* a number ranging from ... to ... , for ...

8 months ago | 3 answers | 0

Question

how to transfer a 3D variable into a row in an excel file?

Hello all, As shown in the attached document, I have "data"(EEG data) in the form of "numberOf_Electorrdes * numberOf_Points...

8 months ago | 2 answers | 0

Question

creating an ongoing matrix

Hello The following simple script is going to merge two or three files and then calculate the mean of every n columns in a for ...

1 year ago | 0 answers | 0

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

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

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

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

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

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

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

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

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

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

3 years ago | 1 answer | 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...

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

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

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

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

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

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

3 years 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);

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

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

3 years ago | 1 answer | 0