# Alberto Acri

Last seen: 16 dagar ago Active since 2020

Followers: 0   Following: 0

#### Feeds

View by

Question

locate within the first column of a matrix a sequence of numbers and extract those rows
hi! I have the matrix 'M'. How can I locate inside the first column of the matrix 'M' the sequence of numbers (1 to #) and extra...

22 dagar ago | 1 answer | 0

### 1

Question

Generate the motion (Trajectory) of a sphere (or point) with given velocity value
Hi. I have this file 'DATA'. The first 3 columns are the nodes in space (X,Y,Z in [m]). The 4th column is not of interest. The f...

### 2

Question

subdivide numbers inside a file .xlsx
How can I divide the numbers into different columns in this attached .xlsx file? filename = 'file.xlsx'; t = readtable(filenam...

### 3

Question

read part of a .txt file
I have the attached .txt file. I would like to read only the lines where the number from 1 to 200 is included. Each row should ...

### 2

Question

Calculate the normal vector between two nodes in the space
Hi! I have two nodes A and B. These are positioned in space with the same value of X and Y but different Z. The normal in this c...

### 1

Question

add a number of nodes N between two known nodes
How can I add a number of nodes N between two known nodes present in 'NODES'? NODES = [-41.9153 -20.1597 65.3012; -33...

### 1

Question

Calculate normals from nodes which generate a 3D curve
Hi! I have two matrices: the matrix 'coord' containing the coordinates of nodes (see black nodes in the figure) a matrix 'no...

### 1

Question

Merge triangular faces of different meshes
How can I create a matrix that unifies the triangular faces of one 3D figure with the triangular faces of another 3D figure?

### 1

Question

combine two stl into one
I have two 3D geometries ('sol_1.stl' and 'sol_2.stl') and their corresponding nodes and faces. I would like to combine the two...

### 1

Question

save (e.g. gif) a rotation of a 3D geometry around to an axis
I would like to rotate the 3D geometry of a cube around two known nodes. How can I modify the code? % ======== CUBE xc=1; yc...

### 1

plot some nodes from an .txt file
Hi @Mathieu NOE I tried using the various functions to retrieve the outermost nodes for other types of curves like the ones att...

Question

orthogonal projection of 3D nodes onto a 2D plane
I need to project 3D nodes (nodes) onto a 2D plane that I got from the code in FEX. load xyz fobjPlane=planarFit(xyz); for ...

### 1

Question

create a 3D smoothing with csaps (or similar)
To get a better set of nodes arranged in space as a ‘curve’, how can I improve this code? Could you suggest? load curve_1 cc...

### 2

Question

find the inflection point of a curve 3D (set of nodes) in matlab
How can I determine the inflection point of a set of nodes generating a curve in 3D space? load curve_1.mat curve_x = curve_1;...

### 1

Question

create a 3D average plan (or normal) from two 3D plans (or normals)
How can I determine the average plan knowing the plans of the two attached sets of nodes? load plan_1_2.mat figure plot3(plan...

### 1

Question

create a 3D average curve from two 3D curves
I have curves M1 and M2 composed of x nodes in space. Is it possible to create an average curve (up to a specific height, from...

### 1

Question

Split two 3D geometries having the same matrix of nodes and faces
I have a matrix containing the nodes and a matrix containing the triangular faces of two 3D geometries as shown below: Is there...

### 1

Question

Find the coordinates of the nodes of an matrix inside another matrix
I would like to find the coordinates of the nodes of an matrix 'nodes_portion' inside a larger matrix 'nodes_e'. (In this case a...

### 1

Question

calculate the normal of a 3D plane
Hi! I have a circular plane, whose coordinates of the points of the circumference are: P = importdata("node_plane.mat"); plot3...

### 1

Question

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

### 1

Question

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

Question

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

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

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

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

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

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

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