Community Profile

photo

Bartosz Bagrowski


Last seen: 3 meses ago Active since 2022

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Answered
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

answers

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

answer

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

answer

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

answer

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

answer

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

answer

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

answer

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

1

answer

Question


Reversing a part of matrix
Hey, I would like to choose two random values in a matrix and reverse from the first random number to the second one. i=randsam...

5 meses ago | 4 answers | 0

4

answers