Question


How to split a matrix columnwise and save each part as a matrix_part_i.txt file using a loop?
I want to split a matrix column-wise and save each part with correct index. The begin and end of each part is determined by a...

13 years ago | 1 answer | 0

1

answer

Question


How to extract peaks from a matrix and concatenate columns with different number of rows using a loop?
Hi I want to extract the peaks of all columns from a matrix M. Each column of M should generate a new column of a matrix N ...

13 years ago | 1 answer | 0

1

answer

Question


How to save statitiscs displayed in workspace as text file?
Is there a way to save the statistics displayed on workspace as a text file (as if I would record an image of workspace)? ...

13 years ago | 1 answer | 0

1

answer

Question


How to overwrite part of a matrix by a function of the row number.
I want to overwrite part of a matrix by a function of the row number. For example, let M=rand(10,5) and the function of ...

13 years ago | 2 answers | 0

2

answers

Question


How do I make variables that I enter in a script to apply to a second script without need to run or open the second one?
Hi, I would like to enter variables in a VARIABLE_script.m and once I run this variable_script.m it should a) write the...

13 years ago | 2 answers | 0

2

answers

Question


How do I concatenate multiple arrays into a single matrix?
I have a variable in the workspace named { }mk If I double click on this variable, the variable editor opens and displays the f...

13 years ago | 2 answers | 1

2

answers

Question


Manipulation of matrices stored as { }
let n=[1:1:9;1:1:9]; M=n'; I used the following loop to extract parts of M to mk matrices for k=1:3; l=((k-1)*3)+...

13 years ago | 1 answer | 0

1

answer

Question


How to extract and store parts of a matrix to new matrices
I have read the FAQ to extract parts of an existing matrix to new matrices only by selection of rows but had no success. ...

13 years ago | 1 answer | 0

1

answer

Question


How to give the total amount of row from a matrix as a value?
I need to define the total amount of row of a matrix as a variable and don't how to extract this number. For example, let ...

13 years ago | 2 answers | 0

2

answers

Question


How to save a matrix as text file? PROBLEM REFORMULATION!!!
I want to save a matrix as text file. Each column should be separated by tab. The output file should be read with any te...

13 years ago | 1 answer | 0

1

answer

Question


How to save a matrix as text file?
I want to save a matrix as text file. Each column should be separated by tab. The output file should be read with any te...

13 years ago | 4 answers | 1

4

answers

Question


How to subtract each column of a matrix by the respective median of that column?
I want to subtract each column of a matrix by its median. For example, for the matrix: l=(4x3) 1 5 9 2 6...

13 years ago | 1 answer | 0

1

answer

Question


GENERATE MATRIX FROM VECTORS
I want to generate a matrix M of TWO columns and J rows. An initial value (=XSTART) is fixed for the first column while th...

13 years ago | 1 answer | 0

1

answer

Question


Generation of a column with constants values that increases for different RANGE of row
I'm trying to generate ONE column of numbers in Matlab as follows: 1) let the value be equal 10 for row 1 to 30, 2) let th...

13 years ago | 1 answer | 0

1

answer