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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 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年以上 前 | 1 件の回答 | 0