Feeds
提问
solving linear equations using matrices in MATLAB
Hi, my script creates a matrix and 2 vectors using several 'for' loops and as an example they are returned as follows: ...
11 years 前 | 2 个回答 | 0
2
个回答已回答
How to add values to already existing ones in a matrix using for loop?
Nevermind, I solved the problem by accumulating values in KG with: KG((2*(nEN(i1))-1),(2*(nEN(i2))-1)) = KG((2*(nEN(i1))-1)...
How to add values to already existing ones in a matrix using for loop?
Nevermind, I solved the problem by accumulating values in KG with: KG((2*(nEN(i1))-1),(2*(nEN(i2))-1)) = KG((2*(nEN(i1))-1)...
11 years 前 | 0
| 已接受
提问
How to add values to already existing ones in a matrix using for loop?
Hi, my function looks like this: nEN=[1 2 4 5]; KG=[]; for i1=1:4 KG((2*(nEN(i1))-1),(2*(nEN(i1))-1))=Ke((2*i1-1),...
11 years 前 | 2 个回答 | 0
2
个回答提问
How to keep a matrix from rewriting every loop iteration?
Hi guys, I'm having a problem with assigning values form a matrix to another matrix using loop functions. Here is the code: ...
11 years 前 | 1 个回答 | 0
1
个回答提问
How to plot node numbers using matrix of nodes's coordinates?
Hi, my script plots a mesh grid using: gplot(adj,NC,'-o') where 'adj' is the adjacency matrix and 'NC' is the matrix...
11 years 前 | 3 个回答 | 0
3
个回答提问
How to display X-tick labels vertically using GPLOT?
Hi, here is the code I'm using: gplot(adj,NC,'-o') axis([0 W1 0 H1]) xlabel('Width') ylabel('Height') title('ME...
11 years 前 | 1 个回答 | 0
1
个回答提问
How to fill a matrix with a range of numbers?
Hi, it might be a silly question, but I was struggling finding an answer to that for hours. The problem is I have a range of ...
11 years 前 | 1 个回答 | 0
1
个回答提问
How can I create a matrix using nested loop functions?
Hi, I'm trying to create a matrix of X and Y coordinates of nodes which are equally separated on a plane. The function should gi...
11 years 前 | 1 个回答 | 0