Alberto Acri
Content Feed
提问
extracting matrices of numbers from a text file (txt) also containing words
I have a txt file consisting of numbers and words as you can see in the attachment. I have to create two matrices M1 and M2 wit...
9 days 前 | 1 个回答 | 0
1
个回答提问
Locate two neighboring nodes in space so as to divide the matrix into two
I have the coordinates of nodes arranged in space in the shape of 8. Is there a way to locate the nearest points as marked in ...
1 month 前 | 1 个回答 | 1
1
个回答提问
generate average numbers between two numbers inside a vector
Hi! It is easier with the figure than with words. I want to create average numbers between two numbers and insert them instead o...
1 month 前 | 1 个回答 | 0
1
个回答提问
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...
2 months 前 | 1 个回答 | 0
1
个回答提问
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...
2 months 前 | 2 个回答 | 0
2
个回答提问
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...
2 months 前 | 1 个回答 | 0
1
个回答提问
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 ...
2 months 前 | 4 个回答 | 0
4
个回答提问
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...
2 months 前 | 1 个回答 | 0
1
个回答提问
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 ...
2 months 前 | 1 个回答 | 0
1
个回答提问
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 months 前 | 2 个回答 | 0
2
个回答提问
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...
2 months 前 | 3 个回答 | 0
3
个回答提问
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 ...
2 months 前 | 1 个回答 | 0
1
个回答提问
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...
2 months 前 | 1 个回答 | 0
1
个回答提问
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 months 前 | 2 个回答 | 0
2
个回答提问
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...
2 months 前 | 3 个回答 | 0
3
个回答提问
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 ...
2 months 前 | 1 个回答 | 0
1
个回答提问
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 months 前 | 3 个回答 | 0
3
个回答提问
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...
3 months 前 | 5 个回答 | 0
5
个回答提问
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'...
4 months 前 | 2 个回答 | 0
2
个回答提问
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) == []...
4 months 前 | 1 个回答 | 0
1
个回答提问
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...
4 months 前 | 1 个回答 | 0
1
个回答提问
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...
4 months 前 | 1 个回答 | 0
1
个回答提问
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...
4 months 前 | 1 个回答 | 0
1
个回答提问
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...
5 months 前 | 1 个回答 | 0
1
个回答提问
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...
5 months 前 | 1 个回答 | 0
1
个回答提问
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...
5 months 前 | 2 个回答 | 0
2
个回答提问
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'); % ...
5 months 前 | 3 个回答 | 0
3
个回答提问
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...
5 months 前 | 1 个回答 | 0
1
个回答提问
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...
5 months 前 | 1 个回答 | 0
1
个回答提问
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?
5 months 前 | 1 个回答 | 0