Community Profile

Alberto Acri

Last seen: 7 dagar ago Active since 2020

Content Feed

View by

Question

split a matrix into two matrices according to some rule
How can I generate two separate matrices, one containing the coordinates of line A and the other of line B? load matrix figu...

10 dagar ago | 1 answer | 0

1

Question

search for the position of a number inside a cell (cell with existence of empty rows)
I am trying to look for each row of 'N' inside a cell. I am using 'find' but it doesn't seem to work. I should identify, in t...

13 dagar ago | 2 answers | 0

2

Question

Identify coordinates of nodes in a matrix above/below the coordinates of a plane
Is there a way to identify the coordinates of nodes (black nodes,'DATA_select') above (green selection) or below (purple selecti...

15 dagar ago | 1 answer | 0

1

Question

Create a node in the space between two nodes (A and B) and following the direction normal to a node (N)
Hi. I need to create a node in the space between two nodes (A and B) and following the direction normal to a node (N) as in the ...

18 dagar ago | 4 answers | 0

4

Question

incorrect reading of a txt file
I have this .txt file that I have to read in Matlab. The first line is text and the second line onwards are numbers. Using 'imp...

23 dagar ago | 1 answer | 0

1

Question

reverse operation to 'strsplit'
Hi! I have a cell like 'temp'. And I need to transform it (by adding '_') to get a char like 'a'. How can this be generated? a ...

1

Question

calculate the perimeter of a polygon arranged in space
Hi. I need to calculate the perimeter of the geometry in the figure. load plane_new figure x = plane_new(:,1); y = plane_new...

2

Question

creating nodes on an axis normal to a plane
Hi! How can I generate more nodes along a normal to the plane? They must extend to a length L. I would like to arrange the nodes...

3

Question

Generate coordinates (3D), having the same contour as the initial circle but with a smaller size
Hi! Starting from nodes arranged as a circle in space (blue points), I must generate others having the same outline as the blue ...

1

Question

Find coordinates inside a matrix with specific conditions
I need to identify 3 nodes (the green ones, but it can also be the blue ones) within a matrix that generates a "circle" in space...

1

Question

Improving the interpolation of nodes arranged in a circle on a plane
I am using this code to improve the interpolation of nodes arranged in a circle on a plane. As input I have the nodes 'outermos...

2

Question

Determine the coordinates of the nodes forming the outermost circle
Hi! How can I extract only the coordinates of the nodes forming the outermost circle? The nodes are located on radius R = 4! no...

3

Question

Determining area considering nodes arranged in space in an almost circular shape
Hi. I have the attached nodes arranged in space. I would like to calculate the area having the nodes as boundaries. I'm trying ...

1

Question

Determining the coordinates of a node between two known nodes and knowing the distances between the known nodes
Hi! This may seem like a rather trivial question. Do you know how to determine the coordinates of a node C knowing node A, node ...

3

Question

find similar numbers within a matrix
Hi. I need to identify the position of a triplet of numbers (P) inside an array (M). P = [-3.4970900e+01 -2.0289890e+02 -1...

5

Question

convert a cell (Rx1 cell) to a vector (Rx1 double)
Hi. I want to convert the cell 'rows_check_n' into a vector of type double with the numbers inside the cell. I tried 'cell2mat'...

2

Question

identify rows with [] within a cell
Hi! Is there any way to identify rows with [] within a cell? Something that is analogous to 'find'. [rr,cc] = find(M(:,1) == []...

1

Question

create empty pie chart (or not generate the graph)
Hi! I would like to create empty pie chart (I know it is not very useful). Using 'pie' does not allow this. so I had thought o...

1

Question

use the if-else loop considering a variable 'char' in the workspace
Hi! I have an 'out' variable in the workspace that can be a number or a char. How can I use the if-else loop considering this va...

1

Question

error using the function 'splitapply'
Hi! I have a problem about using 'splitapply'. Using the matrix 'matrix_out_98' the code works, but using the matrix 'matrix_ou...

1

Question

increase the thickness + hide some lines generated in the pie chart
Hi! I generated this pie chart: load matrix_new.mat load color_matrix.mat % ========== labels = matrix_new(:,1); percentage...

1

Question

Merge multiple matrices with different columns into a single matrix
I would like to combine several matrices with different columns (cell_test(:,1)) into one matrix by adding 0's (or rather []) in...

1

Question

select rows based on the value of the last column of the matrix
I have a matrix 'A'. As can be seen in the figure (red rectangles), some rows have the first and second columns the same but not...

2

Question

rename txt file within a specific folder
I need to rename a specific txt file ('file_name') within a folder. How is this done? folder = dir('C:\...\...\...\*.txt'); % ...

3

Question

Transforming a row (inside a matrix) with equal numbers into a row with only one number
I have amatrix of the following type: in = [228 228 228 231 231 231 183 183 183 157 157 157 168 168 168]; I need to know i...

1

Question

Enlarge the size of the image inside the plotted figure
I have an image (defoult peppers). When I extract a portion of that picture, I display it "small". How can I keep the size of th...

1

Question

Merge 2 matrices "RxC uint8" into one matrix "RxCx2 uint8"
Hi! I have 2 matrices of the type "41x41 unit8", I should " combine" them in order to get "41x41x2 unit8". How can I do that?

1

Question

Repeat coordinates (arranged on the same y and different x) over different values of y
Hi! I need to achieve this by knowing the 'green' coordinates ("row_c") and the repeat intervals ("val"): I tried this way bu...

2

Question

Ordering a matrix as x increases and y increases
Hi. I need to remove repeating nodes inside the 'square' array (I need to get only unique rows without repetition). I tried wi...