Community Profile

photo

Alessandro


a

24 total contributions since 2013

Contact

Alessandro's Badges

  • Thankful Level 2
  • First Answer

View details...

Contributions in
View by

Question


Multiply Each Matrix in Cell Array by a Different Value
I have a cell A = {[1 2; 3 4]; [5 6; 7 8]}; and a vector b = [1; 2] and I want to multiply each matrix in A by t...

3 years ago | 1 answer | 0

1

answer

Answered
How to save variables from function output to workspace?
You are probably calling the function in a wrong way from your script/command line. [A,B] = GetText(filename); will save...

3 years ago | 2

Answered
How do I force MATLAB treat my variable 'range' as a variable instead of a function ?
Simply create a copy of the variable assigning a different name?

3 years ago | 0

Question


Sort Coplanar 3D Points Clockwise
I have a set of 3D points that form a polygon. The points are coplanar, due to the fact they are obtained by means of a Voronoi ...

3 years ago | 1 answer | 0

1

answer

Question


Compute Gradient of a Scalar 3-D Field Defined On a non Uniform Grid
I have the values of a scalar Field in 3 dimensions over a randomly arranged set of points in space. How do I calculate the com...

3 years ago | 0 answers | 0

0

answers

Question


Generate random coordinates inside a convex polytope
I am trying to generate a random set of coordinates inside a randomly-shaped (convex) polytope defined by its bounding surfaces....

3 years ago | 3 answers | 4

3

answers

Question


Retain IDs of rows kept by the Unique function
I have a matrix composed in the following way: [ID_1 ID_2 Resisting_Area] ID_1 and ID_2 are integer values, Resisting_Area i...

3 years ago | 1 answer | 0

1

answer

Question


Find which tetrahedron in a Triangulation contains a Given Facet
I have a Delaunay tetrahedralization, defined by a Coordinate Vector "X" (of size n x 3) and tetrahedra IDs "TRI"(of size m x 4)...

3 years ago | 1 answer | 0

1

answer

Question


Using a Variable calculated in a parfor loop
I am calculating the internal forces of the finite elements in a mesh inside a parfor loop: parfor iel=1:nel id_1 = ...

4 years ago | 0 answers | 0

0

answers

Answered
Changing large matrices by not completely loading them into memory
Did you check the sparse command out?

5 years ago | 0

Question


Code Slows Down if I Preallocate Larger Variables?
Hello, I am using Matlab to explicitly integrate equations of motion for a finite element mesh. In the code I initialise all t...

5 years ago | 0 answers | 0

0

answers

Question


Calculate and Assembly Stiffness Matrix in Parfor Loop
Hello, I am working on extensive lattice networks, so I need to deal with very big stiffness matrices and enormous numbers of...

5 years ago | 1 answer | 0

1

answer

Question


Constrain a Delaunay Triangulations With a Surface?
I would like to perform a Constrained Delaunay Triangulation by inputing a Surface to define the Constraint, instead of the Edge...

5 years ago | 0 answers | 1

0

answers

Question


Find Row Vectors In an Array Containing Only Elements from a Vector
Having a matrix A = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] and a vector b = [1 2 5 6 7 8 9 13 14 15 16]' I would like to...

5 years ago | 1 answer | 0

1

answer

Answered
find function with floating points number
http://www.mathworks.com/matlabcentral/answers/9021-approximately-equal-or-egual-to-error

6 years ago | 0

Question


Deleting Triangulation Entries from a Delaunay Triangulation Based on Indices Given by a Logical Array
Hello, I am using Delaunay Triangulations to map a 3D space. Given certain criteria, I select a certain number of points to b...

6 years ago | 1 answer | 0

1

answer

Question


Calculating Sphere Cube Intersection
Hello, I want to evaluate wether a given sphere intersects a cube/parallelepiped or not. A normal check on the distance from th...

6 years ago | 0 answers | 0

0

answers

Question


Two identical commands take different times to run?
I am running this function inside a bigger script: <</matlabcentral/answers/uploaded_files/9047/Cattura.JPG>> K11 and K12 ...

6 years ago | 2 answers | 1

2

answers

Question


Partition a Big Matrix Into Pieces According to Values from A Vector
I have a big matrix (approx 2000x2000 size). Based on another boolean vector (which is 2000x1), i want to remove rows or columns...

6 years ago | 1 answer | 0

1

answer

Answered
One specific line of a function is taking too long
New informations about the issue: * Making K global doesn't change anything. Still same runtime. * By-passing the function a...

6 years ago | 0

Question


One specific line of a function is taking too long
I am having issues with a particular function. Also, it is a very simple one, with very quick calculations in it. It serves to a...

6 years ago | 2 answers | 1

2

answers

Question


Error while using size(A,1)?
Hello, I am trying to evaluate the number of rows of a certain matrix 'Conn' using d = size(Conn,1) If I initialise the ma...

6 years ago | 1 answer | 0

1

answer

Question


Using the answer of inputdlg into a Matlab Expression
Hello everybody, I am trying to write some piece of code which asks for the name of a previously defined variable and uses th...

7 years ago | 2 answers | 0

2

answers