Question


how to use cell ?
In my case >> U U = 1×2 cell array [1×2 double] [1×2 double] >> U{1} ans = 1 2 >> U{2} ans = 2...

10 months ago | 1 answer | 0

1

answer

Question


How to separate element from cell?
U=SI U = 1×2 cell array [1×2 double] [1×2 double] U{1} ans = 1 2 >> U{2} ans = 2 3 My quest...

10 months ago | 1 answer | 0

1

answer

Question


How to compare betwen two cells?
How to compare betwen two cells? like this: S and T1 are two cell with different values: c=1: i=1; SI{c},T1{i} the error "C...

10 months ago | 1 answer | 0

1

answer

Question


how can I sort a struct?
my struct is declared as: chr.id=[]; chr.sequence=[]; chr.Si={}; chr.relevant=[]; chr.vic_item = []; len=numel(x); TI=rep...

10 months ago | 1 answer | 0

1

answer

Question


How can I modify database in each iteration using the original one?
in my code T1 is a data base is already load, N=10; for i=1:N Qt(i).Cost = Evaluation(Qt(i).sequen,SI,D,T1,MST,NS,L); end...

10 months ago | 0 answers | 0

0

answers

Question


how can i save struct in file txt?
I want to save my result in the form of struct in file How do we do that?

10 months ago | 1 answer | 0

1

answer

Question


Cell contents reference from a non-cell array object.
Error in Evaluation (line 67) U = [U TI(1).Si{a}]; here is my code, how can i fix this error? T1 = Evaluation(...

10 months ago | 0 answers | 0

0

answers

Question


how can i fix this problem?
Not enough input arguments. : this error appear during the run the first lines of my program are function Z = Compare( T1,MST,...

10 months ago | 0 answers | 0

0

answers

Question


how can i fill matrix using a vector?
my vector v1=[1 4 8 9 3 6 ] my matrix pop with size N*m N=10: m=4; I want to fill randomly matrix pop w...

11 months ago | 2 answers | 0

2

answers

Question


How can I remove duplicate values from cell array?
I have this problem S={ 1 2, 2 3 } how delete duplicate value: S becomes {1 2 3 }

11 months ago | 1 answer | 0

1

answer

Question


How can I fix this problem
U=[]; for a=1:numel(TI(1).Si) % Universe % U = [U TI(1).Si{a}]; end U = unique(U,'first'); Cell...

11 months ago | 0 answers | 0

0

answers

Question


how can i put value of cell in vector?
this error appear during the run of my program "Cell contents reference from a non-cell array object."cell U=[ ] S={1 ,2 ,3...

11 months ago | 1 answer | 0

1

answer

Question


Is it another command using to compare between vector and cell?
I have this code bellow: when U = [] and has value after , S also the same initila by S = {}, I use IsContainedIn to compare b...

11 months ago | 1 answer | 0

1

answer

Question


how can i fix this error?
"Undefined operator '==' for input arguments of type 'cell'." this error appear when I want to compare the similarity between t...

11 months ago | 1 answer | 0

1

answer

Question


how can i compare beteween two elements the first is cell and the second vector or class double in matlab?
Example: S= {1 2 } q= [ 1 2 3] how compare each element of q exisit in S?

11 months ago | 1 answer | 0

1

answer

Question


how can fix this problem with matrix ?
How can I create matrix with the size N,m? How can I copy each array of matrix in a vector and make the modification in it and...

11 months ago | 1 answer | 0

1

answer

Question


replace duplicate value by 0 in matrix or vector
How do we replace duplicate value by 0 in matrix or vector ? for example Input: b = 1 2 1 3 Output:: b= 1 2 0 3 Thank...

12 months ago | 3 answers | 0

3

answers