Feeds
질문
Comparing values from structure to a scalar
for i=1:15 A(i).A = [randi(10, 10, 1), rand(10,1)]; for j=1:10 mpc = loadcase('case14'); ...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
Assigning values from one matrix in a struct to matrix in another struct
This is a struct (let's say A_struct) containing results from some calculations in column 1, and in column 2 and 3 are elements ...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
Compare current iteration with previous one?
How can I compare the current iteration in a loop with the previous one? For example, I want to see if an element in the matr...
10년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to assign value from one matrix to another?
M=ones(14,2); M(:,1)=1:14; G=ones(20,2); for o=1:20; G(o,1)=ceil(14*rand); G(o,2)=6.5*rand; ...
10년 초과 전 | 답변 수: 1 | 0

