Question

How can I make the difference or subtraction between two scalar vectors?

Hello every one I have vectors like x1=[1 2 5 8 ] x2=[2 1 0 6] x1 - x2 = [5 8] How can I get this r...

6 days ago | 1 answer | 0

Question

How do we sort scalar value in ranks?

Hello everyone, I have struct R bellow, I sort these sequence in ascending order according to Weights values, Now I want to rank...

10 days ago | 0 answers | 0

Question

How can I sort valus of a field in struct?

Hello Everyone I have an issue to sort values so I have struct named R contains field : sequance [ ] ...

12 days ago | 1 answer | 0

Question

How can i calculate memory cost of my program?

I implement a program in matlab with many instructions, I want to compute the memory cost of the whole algorithm

15 days ago | 0 answers | 0

Question

How can I generate voctors of double values from another bector?

Hello everyone, My issue here is , I have a vector of double values v1=[12,3459,450,......,567], I want to generate many vecto...

15 days ago | 1 answer | 0

Question

How can I generate values randomly from another existing vecor?

Hi everyone My problem is I want to generate a vector of values from other vector with zeros For example My vector is v1=[1...

15 days ago | 1 answer | 0

Question

how to remove line from cell array?

Hi every one, I'm working on cell array called T like: T{1}= [1 2 3 ] T{2} = [ 2 3] .. . . . . T{n}=[ 2 3 4] I want ...

18 days ago | 1 answer | 0

Question

how can I precise number in double

Hello, I want to ask you how I can precise the numbers after comma for example: x=0.2584 the result should be x=0.2 P...

6 months ago | 1 answer | 0

Question

how to generate and precise double value?

Hello I want to ask you How I can generate probability values randomly between 0 and 1, but 1 and 0 can include as probability ...

7 months ago | 1 answer | 0

Question

How to generate probability value randomly?

Hello, I have a set of discrete value X=[1 , 2, 10, 5, ...., 4] I want each value in X contains a probability value betwee...

7 months ago | 1 answer | 0

Question

How can I convert douvle value to int or Integer?

during the coding my programe I 've got a double value example: num= 1.1110e+03 I 'm going to use this value in other value ...

1 year ago | 4 answers | 0

Question

How to parcours data?

I have a cell array SI [1 31 36] [1 31] 2 [1 67] [1 41] [1 31 36 5 90] [1 31 36 23 90] [1 31 36 38 94] [1 36 41 79 67] ...

1 year ago | 1 answer | 0

Question

How could i call java function from matlab?

In my implementation, i want to call a java code and use it in matlab there is apriori algorithm implemented in java I want to ...

1 year ago | 2 answers | 0

Question

How cal i paralle my source code its too long and take time to run?

please help me I 've already implemented a code with many functions and its take more than day to run, I want to paralle this...

1 year ago | 1 answer | 0

Question

How to compare between cell and double?

I haave a cell array and double vector how can i compare between them?

1 year ago | 0 answers | 0

Question

How to plot histogramme?

How can I plot histograme of a vector with four values independant? v=[1; 2;0;1]

1 year ago | 1 answer | 0

Question

How to scan text file?

Hello every one I have a text file contains: 1,24,85,90 23,36 34,36,39,56,85,86,90 34,59,67,85,86 39,85,93 I want to scan...

1 year ago | 2 answers | 0

Question

How to insert value in the first of vector?

CumProb ans = 0.1579 0.2105 0.3158 0.4211 0.5263 0.7895 1.0000 I want to insert the value ...

1 year ago | 1 answer | 0

Question

how can i add column in matrix?

A is a matrix: 0 9 8 4 6 9 0 8 4 3 0 6 4 8 9 8 0 ...

1 year ago | 1 answer | 0

Question

How can I save .mat to .csv file

I have a struct of name pop has diferent field saved as .mat I want to transform it as .csv file How do I do that? thanks.

1 year ago | 1 answer | 0

Question

How to use crossover and mutation ?

my population is lake that p1 = [ 9 3 6 0 0] p2 = [1 0 2 5 0 ] how to use crossover and mutation to obtain new solution?

1 year ago | 1 answer | 0

Question

how can i put cell value in a vector?

U = 1×2 cell array [1×2 double] [1×2 double] U contains these values in cell U{1} ans = 1 2 U{2} ans ...

1 year ago | 2 answers | 0

Question

Cell contents reference from a non-cell array object.

why this error appear "Cell contents reference from a non-cell array object" U = {} at first U = TI(s).Si; TI is strict ...

1 year ago | 0 answers | 0

Question

How can I implement this easily?

While (W is not empty) Select S ∈ F \ C that maximize | S ∩ W| C <-- C ∪ {S} W <-- W \ {S} end retrun C How do i imp...

1 year ago | 0 answers | 0

Question

How can i delete cell from cell array?

I have two cell array, W = 1×2 cell array [1×2 double] [1×2 double] F = 3×2 cell array [1×2 double] ...

1 year ago | 0 answers | 0

Question

How to fix this problem?

>> sitem sitem = 1 2 3 >> U U = 1×2 cell array [1×2 double] [1×2 double] U{1} ans = 1 2 ...

1 year ago | 0 answers | 0

Question

How to compare between two cell array?

>> W={ [1 2] , [1 3] , [1 4] , [2 3] , [2 4] } W = 1×5 cell array [1×2 double] [1×2 double] [1×2 double] [1×2...

1 year ago | 1 answer | 0

Question

How to implement the pseudocode in matlab?

C is empty Output: victitem <- , victim item to be deleted W =U While (w is not empty) Select S <-- F \ C that maximize ...

1 year ago | 0 answers | 0

Question

Undefined operator '~=' for input arguments of type 'cell'.?

W is cell contains cell values in iteration the size of W is reduced by removing cell, and in each time check W is empty , how...

1 year ago | 1 answer | 0

Question

How to read file .txt?

I have file .txt contains 1 2 2 3 I want to read the file and put each value 12 , 23 in a cell array How can I do that ...

1 year ago | 1 answer | 0