質問


compare char (and empty elements) present in two cells
Hi! I need to compare char (and empty elements) present in two cells. I made this code which works but it gives me an 'error' wh...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


Create a vector with the non-zero indices of a cell array
I have a cell array. I need to create a column vector that returns the non-empty row indices. I have tried this way but there i...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


move cells (contained within a cell) to coordinates other than the starting coordinates
Hi. I have a cell 'matrix_complete' and a coordinate matrix 'coord'. I need to transform 'matrix_complete' so that: the first...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


determine the coordinates with the 0's within a cell
Hi! I have this cell. How can I determine the coordinates where the 0's are? For example in 'matrix' I need to get a matrix wi...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


compare two matrices with isequal
Hi. I need to compare matrices present inside two separate cells (cells 'AAA' and 'BBB'). AAA = importdata("AAA.mat"); BBB = ...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


Store all results obtained from a for loop inside a matrix
Hi. I need to transform the matrix 'matrix' to 'matrix_out' by inserting the number '0' inside the matrix 'matrix' in reference ...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


import to the workspace a .mat file saved in a folder other than pwd
How can I import a .mat file saved in a folder other than pwd to the workspace? folder = 'C:\Users\Desktop\folder_test'; file ...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


transform an empty matrix '0x0 double' into a matrix '0x1 uint8'
Hello! How can I transform an empty matrix '0x0 double' into a matrix '0x1 uint8' as in the figure? For example in my case, I...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


transform an empty matrix '0x0 double' into a matrix '0x2 double'
Hello! How can I transform an empty matrix '0x0 double' into a matrix '0x2 double' as in the figure? For example in my case, ...

1年以上 前 | 3 件の回答 | 0

3

回答

質問


Find the rows of a matrix A within another matrix B
Hi. I need to find the rows of matrix A (106x2) inside matrix B (172x2). Matrix A should contain the values of all rows within ...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


Change condition 'A=253' into 'A(A=253)=0' with multiple values (for example: A=70 and A=253)
Hi. I have this code: value_GS = importdata("value_GS.mat"); value_GS(value_GS=253) = 0; I want to change the last line of th...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


Inserting 0s in rows of an array
Hi. I have a matrix A1 and a vector B1. If I have a 0 in any row of vector B1, I need to insert 0s in that same row of matrix ...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


create empty row inside a vector
Hi. I need to analyze the rows of the vector 'value_GS_test' and transform only the numbers 254 and 255 (if any) into '[]' while...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


error in applying the condition to the if loop
Hi. I need to change all lines with 101 and [100;101] in 'test_2' with '[]' in both 'test_2' and 'test_1'. I succeeded with 101...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


split a vector and save it as a cell (1xN)
I have three vectors: vector_1 has numbers from 69 to 98; vector_2 has numbers from 69 to 78 and 82 to 98; vector_3 has numbe...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


transform a cell into a column vector
Hi. I have a cell 'test' characterized in the first row by a 29x1 array and in the second row by a 27x1 array. I want to get a...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


Apply the color white (255) to some black pixels (0)
I need to apply the color white (255) to some black pixels. For example, in my case I have the geometry of 'circles' (but I ca...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


block first row of a cell
Hi. I would like to sort the columns alphabetically or in ascending number order while keeping the rows unchanged. Example: I ...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


delete the first and last character inside a char
Hi. How can I do to delete the 0 and A present in each row of the cell? values = {'08126A';'05354A';'01406A';'09630A'}; I am u...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


if condition in the case where char is empty
Hi! I generated an empty char: name = ''; I should create an if-end of the following type: if % name is empty name = 'no...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


delete special characters (\ / : * " < > |) in char
Hi. I need to transform these lines: name_1 = '<Hello World>'; name_2 ='File numb: 5'; into these: name_1 = 'Hello World'; ...

1年以上 前 | 4 件の回答 | 0

4

回答

質問


Increase the number of elements inside a cell
Hi. I have this cell: A = {'5';'11'}; B = {'7';'19'}; out = [A,B]; % cell 2x2 I should go from an 'out' cell 2x2 to an 'out'...

1年以上 前 | 2 件の回答 | 0

2

回答

質問


delete columns inside a cell based on null elements
Hi! In this example: union_cell = importdata("union_cell.mat"); I should know whether in the block included by rows 3:5 and co...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


delete columns of empty elements of a cell
Hello! I have a cell like this: empty_elem = []; A = {'5','11',empty_elem,empty_elem;'99','169','188',empty_elem;'250','258','...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


transform 1x12 cell to 3x4 cell
Hi! I have a cell like this: A = {'5','11','69','85','114','169','188','196','250','258','267','295'}; I want to transform it ...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


edit the content present inside one cell
Hi! I have two cells like this: I assume they are not the same as entering them in the same cell gives me the following error...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


create separate cells based on the (numbered) files contained in a folder
Hi. I would like to create separate cells based on blocks of numbers. For example: Inside a folder I have 4 files numbered res...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


Rename folders using folder names saved in cells
I have a folder 'A' inside which I have numbered folders. I saved the folder numbers inside a cell: cell_numbers = {2;10;22;48}...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


store char in a column matrix
Hi. I have a for loop that generates char like this: 'parameter_1' ('parameter_2' and so on). I would like to store them all in...

1年以上 前 | 1 件の回答 | 0

1

回答

質問


create matrix (rx1) with the data obtained from the for loop
Hi. I have several numbered folders inside one folder. I would like to sort the obtained dfolders structure by the name field....

1年以上 前 | 1 件の回答 | 0

1

回答

さらに読み込む