Feeds
提问
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...
7 years 前 | 1 个回答 | 0
1
个回答已回答
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...
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...
7 years 前 | 3
已回答
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?
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?
7 years 前 | 0
提问
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 ...
7 years 前 | 1 个回答 | 0
1
个回答提问
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...
7 years 前 | 2 个回答 | 0
2
个回答提问
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....
7 years 前 | 3 个回答 | 5
3
个回答提问
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...
7 years 前 | 1 个回答 | 0
1
个回答提问
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)...
7 years 前 | 1 个回答 | 0
1
个回答提问
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 = ...
9 years 前 | 0 个回答 | 0
0
个回答已回答
Changing large matrices by not completely loading them into memory
Did you check the sparse command out?
Changing large matrices by not completely loading them into memory
Did you check the sparse command out?
9 years 前 | 0
提问
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...
9 years 前 | 0 个回答 | 0
0
个回答提问
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...
9 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 0 个回答 | 1
0
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答已回答
find function with floating points number
http://www.mathworks.com/matlabcentral/answers/9021-approximately-equal-or-egual-to-error
find function with floating points number
http://www.mathworks.com/matlabcentral/answers/9021-approximately-equal-or-egual-to-error
10 years 前 | 0
提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
10 years 前 | 0 个回答 | 0
0
个回答提问
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 ...
10 years 前 | 2 个回答 | 1
2
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答已回答
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...
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...
10 years 前 | 0
提问
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...
10 years 前 | 2 个回答 | 1
2
个回答提问
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...
10 years 前 | 1 个回答 | 0
1
个回答提问
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...
11 years 前 | 2 个回答 | 0