photo

Taner Cokyasar


Active since 2016

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Creating a Matrix including ones on diagonal
How can I create a matrix with the most shortcut way such as: 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 ...

7 years ago | 1 answer | 0

1

answer

Question


Conditional constraint matrix creation for intlinprog use
I know, this question is a little bit complicated and may even be hard to tell in here. However, I really need this to be done. ...

8 years ago | 0 answers | 0

0

answers

Question


How to create such a matrix like this?
Hello, I need to create a matrix as following: Number of the rows depend on 'i', where i=3 and number of columns depend on...

8 years ago | 1 answer | 0

1

answer

Answered
intlinprog matrix creation help needed
Answer by Stephen Cobeldick 28 minutes ago Edited by Stephen Cobeldick 27 minutes ago Accepted answer Just use sub2ind: ...

8 years ago | 0

| accepted

Question


intlinprog matrix creation help needed
Hello, I have the following sample vector named Zvalues: Variable Name(Zim) Zvalues Z11 0 Z12...

8 years ago | 1 answer | 0

1

answer

Question


Need help to create a matrix for the use of intlinprog!
Hello, I am a beginner. I have the following sample vector named Zvalues: Variable Name Zvalues Z11 ...

8 years ago | 2 answers | 0

2

answers

Question


How do I make the element zero, if its adjacent column element is zero?
Hello, Assume, I have the following 9x2 matrix. When there is a zero in the second column, I want to make the first column'...

8 years ago | 2 answers | 0

2

answers

Question


Need Help for creating constraint with If conditions
I have 'Z(im)', 't(m)', and f(i) vectors as following (left side is parameter indices=Zim): im Zim t(m) f(i) 11 ...

8 years ago | 1 answer | 0

1

answer

Question


How to use fprintf in the following situation?
Hello, I have following vectors tmvalues and Zimfi. I am finding Yvalues vector by using those two and finding the following ...

8 years ago | 1 answer | 0

1

answer

Question


A very simple question about a column vector creation
I am an extra beginner MATLAB user. There is a 1:m command to create a 1 2 .... m row matrix. However, I couldn't find how to cr...

8 years ago | 1 answer | 0

1

answer

Question


Displaying Specific Rows with Non-zero values
I created the following code to create variable names for my solution (Zvalues) to an MILP problem. (Zvalues are binary) [Z1,...

8 years ago | 1 answer | 0

1

answer

Question


How to separate a vector into sub-vectors?
Assume, I have the following vector Zs (9x1): 0 0 1 0 1 0 0 1 0 I want to create sub-vectors such ...

8 years ago | 1 answer | 0

1

answer

Question


Using "for" to create loops
I am trying to create a loop to have a (ixm)x2 matrix such as: 1 1 1 2 1 3 2 1 2 2 2 3 3 1 3 2 3 3 ...

8 years ago | 1 answer | 0

1

answer

Question


How can I condense this into one linear constraint?
| | | |How can I condense these 2 constraints in the attached image into one linear constraint?|||| <</matlabcentral/answers/...

8 years ago | 1 answer | 0

1

answer