Community Profile # Bartosz Bagrowski

Last seen: 3 meses ago Active since 2022

#### Statistics

• #### Content Feed

View by

Reveresing the order of columns in an array
I meant changing the order of the columns in such a way: q=[1 2; 3 4; 5 6; 7 8; 9 10; 11 12] i1=2 i2=6 qnew=[1 2; 11 12; 9 ...

4 meses ago | 0

Question

Reveresing the order of columns in an array
Hi guys, I would like to write a code to reverse the columns order as in a following example: q=[1 2 3 4, 5 6 7 8, 9 10 11 1...

4 meses ago | 3 answers | 0

### 3

Question

Inserting a column in an matrix array
Hi guys, I would like to write a code to insert the column insert a whole column in an array as in a following example: q=[1...

4 meses ago | 1 answer | 0

### 1

Question

Swaping two columns randomly picked
Hi guys, I would like to swap two columns randomly picked in an array. I wrote such a code and I would be glad if you could he...

4 meses ago | 1 answer | 0

### 1

Question

How to create many matrixes in one structure?
Hi guys, I faced such a problem. I have two functions: 1) function sol = CreateRandModel(model) 2) function qnew = CreateNei...

4 meses ago | 1 answer | 0

### 1

Question

Applying one function in another function
Hi guys, I have two functions: 1) function sol = CreateRandModel(model) 2) function qnew = CreateNeighbor(q,model) as an out...

5 meses ago | 1 answer | 0

### 1

Question

Reading the data from another m file in a loop
Hi guys, I created two functions, in the second one I'd like to read the data from the first one like this but in a smarter way,...

5 meses ago | 1 answer | 0

### 1

Question

Two functions, how to read parameters created in one function in another function?
Hey, I wanted to create two functions: function model = CreateModel() p1 = 1; p1 = p1*30; p2 = 50; P = [p1 p2]; model.P =...

5 meses ago | 1 answer | 0

### 1

Question

Reading the data from one m file in another m file
Hey guys, I would like to create two functions: function model = CreateModel() function sol=CreateRandModel(model) In the ...

5 meses ago | 1 answer | 0