Question

regarding munkres function (Hungarian algorithm)

Now I know how to use the munkres function. But i want it to choose a certain way when there are many possible optimal solutions...

7 months ago | 1 answer | 0

Question

rearrangement matrix rows based on vector of indicies

I think I must be missing something simple here because I tried this before and it worked well, but not sure why it won't work i...

8 months ago | 1 answer | 1

Question

heatmap's range of colors is limited ?

I tried drawing a heatmap using the "HeatMap" command. The documentation is here: https://www.mathworks.com/help/bioinfo/ref...

8 months ago | 1 answer | 0

Question

heatmap giving a "Cannot find an exact (case-sensitive) match for 'heatmap' " error

i'm using MATLAB 2016. Whenever I try to run the heatmap function, I keep getting the following error: Cannot find an exact (c...

8 months ago | 1 answer | 0

Question

fmincon function with vector inputs of different lengths?

The general form of the function I'll be using is: x= fmincon(objective, x0,A,b, Aeq,beq, lb,ub ,nonlcon); YET the input are ...

1 year ago | 1 answer | 0

Question

sum of multiplication for a vector and matrix

Say I have the following matrix and vector: A = [ 2,3; 1,4] b= [ 5 , 7 ] I want a code of the sum of the multiplicati...

1 year ago | 2 answers | 0

Question

Difficulty implementing simulated annealing algorithm

While there are exaplanations for this (see the following link), I couldn't figure out exactly how to implement it: https://www...

1 year ago | 1 answer | 0

Question

How do i create the following cell array ?

this is what I have in mind : as you can see, the main matrix is 2*4, and within each cell there are 3 values Question ...

1 year ago | 1 answer | 0

Question

Why do I get a different length of the vector for different runs ?

This is my code : d=1 p=1 Number_Included = [ 3 7 2 ] while p<=3 r(d:(d+Number_Included(p)-1)) = rand(1, Number_Included(...

1 year ago | 1 answer | 0

Question

Finding ALL the indicies that match a certain value

Suppose I have a variable A= 4 and I have a vector B = [ 3 5 4 6 4 6 7 ] I want to find the index of B that match A that is...

2 years ago | 1 answer | 0

Question

Finding the index (rank) of a specific number from a column

Suppose I have a column B = [ 1 4 8 3 5 9] and I have another vector = [ 8] In this case, I want to find the rank where it...

2 years ago | 1 answer | 0

Question

accessing the first column of each cell ?

lets say I have a cell matrix that was created with 2000 cells each is a 6 by 7 matrix . I want to acces the 7th column of each ...

2 years ago | 1 answer | 0

Question

System of inequalities with <=0

I want to solve a system of equations and an inequality example the equation is x1+x2+x3-x4 +x5 - x6 +x7 - 2x8= 2 ( 8 ...

2 years ago | 1 answer | 0