Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 3 Antworten | 0

3

Antworten

Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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'; ...

etwa ein Jahr vor | 4 Antworten | 0

4

Antworten

Frage


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

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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','...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


organize the inside of the .txt file
How can I organize the data.txt file to get the data_new.txt file?

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


extract row from a cell
Hi! I generated a cell similar to this one: a = {'home'}; b = {'ball' , 'cake' , 'ice'}; c = {'car','moto'}; d = {'money','s...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


combine cells with different size
I have several different cells. How can I combine them? I have tried it this way. a = {'ball' , 'cake' , 'ice'}; b = {'home'}...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


only consider fields that exist within a structure
Hello! I have a mystruct structure. Within this struct I have several fields to consider (for example: data, number, variable, r...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


fix content .txt file (organize the inside of the .txt file)
Hi! How can I transform the file data.txt to data_new.txt?

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


add words to the end of a path
Hi! I need to add the string or char my version or my version complete to the end of a path. I tried this way but I can't find...

etwa ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


generate a string with the numbers 1:999
Hello! I need to generate a string with the numbers 1:999. I wrote these lines of code: row_number = 1:999; column_number = ...

etwa ein Jahr vor | 2 Antworten | 0

2

Antworten

Mehr laden