Community Profile

photo

Drazen Tubic


Active since 2015

Statistics

  • First Review
  • Thankful Level 1

View badges

Content Feed

View by

Question


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'); ...

8 years ago | 1 answer | 0

1

answer

Question


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 ...

8 years ago | 1 answer | 0

1

answer

Question


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...

8 years ago | 1 answer | 0

1

answer

Question


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; ...

8 years ago | 1 answer | 0

1

answer