Community Profile Abbi Hashem

9 total contributions since 2018

View details...

Contributions in
View by

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

4 months ago | 1 answer | 0

1

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

4 months ago | 2 answers | 0

2

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

4 months ago | 1 answer | 0

1

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

5 months ago | 1 answer | 0

1

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

5 months ago | 1 answer | 0

1

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

10 months ago | 1 answer | 0

1

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

10 months ago | 1 answer | 0

1

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

11 months ago | 1 answer | 0