60 total contributions since 2016

Question

Compare the rows of an array with another one's array

Hi all, I have an Array A with dimensions [3500 x 5] And a second array B with dimensions [13x5] How can I check every ...

environ 2 mois ago | 1 answer | 0

Question

Find missing elements of a vector

Hi all, I have a vector =1:1:80; I have a vector with these numbers=[ 1 3 5 12 34 44 55 62 63 68 69 70 72 75 79]; How can I g...

environ 2 mois ago | 1 answer | 0

Question

GA optimization within constraints

Hi there, I am trying to use GA for my first time, so I am a bit confused. I have seen some simple example where you defin...

4 mois ago | 1 answer | 0

Question

fmincon convergence - confusion with F-order optimality and Feasibility

Hi all, I have am running optimization using fmincon however I am not sure if the results are satisfying. I am a bit confu...

4 mois ago | 0 answers | 0

Question

Plot multiple errorbars in pairs

Hi again, I have plotted some errorbars using the commands you suggested in my previous question: x=1; y=8.35; sd=4.13; ba...

4 mois ago | 1 answer | 0

Question

plot a single Error bars

Hi all, I am trying to create one error bar but I am struggling a lot. I tried to read the matlab documentation about error ba...

5 mois ago | 1 answer | 0

Question

Save figure as jpg with 600dpi

Hi all, I am trying to save some figures through coding, in jpg format and 600dpi. Hovewer I have tried these, but stil...

5 mois ago | 2 answers | 0

Question

Matlab error "out of memory"

Hi all, I am running an optimization using fmincon. Initially, I run it with 3 minutes timestep and it runs fine. Afterwards,...

9 mois ago | 1 answer | 0

Question

Add a number every n values

Hi all, I have a question: If I have an array A=[ 1 2 3 4 5 3 0 2 8 3 2 1 0 3 2 0 0 1 1 0 3 1 5 3 2 8 1 0 3 2]; ...

environ un an ago | 2 answers | 0

Question

plot a vector with 3 axes

Hi all, I am trying to plot a vector in a graph with 3 axes, but I am confused how to do it. I tried with plot 3. The matr...

environ un an ago | 2 answers | 0

Question

Convert cell array to an array, when the size of the cells is different

Hi all, I have a cell array like this A={ [0 0 0 0] ; [1 1] ;[2] } Is it possible to convert it in an array? I tried with...

environ un an ago | 2 answers | 0

Question

makedist discrete uniform distribution

Hi all I am trying to create a uniform discrete distribution, with 5 values (20% probability each), by using makedist command ...

environ un an ago | 3 answers | 0

Question

Convert a string into a function of x

Hi all, I have created a string like this: Sstr = join(compose('(x(%d:%d)-x(%d:%d))))', A), ' + ') so I get a result: Ss...

environ un an ago | 1 answer | 0

Question

create indexes of x in a for loop

Hi all, I am trying to create and save some x values in an array in a format of A=[x(2)+x(3);x(3)+x(6);x(4)+x(9)]; so I tri...

environ un an ago | 1 answer | 0

Question

Symbolic variables in a for loop

Hi all, I am trying to create a sum of, which has x and I want to create a for loop to give me the result below : A= [x(...

environ un an ago | 0 answers | 0

Question

Create a vector by selection randomly vectors

Hi all, I have 4 vectors A=[1 2 3 4 5]; B=[0 2 5 6 19]; C=[0 0 1 3 0]; D=[1 0 1 15 0]; And I want to create...

environ un an ago | 3 answers | 0

Question

Objective function in a for loop

hi all, I have an objective function that I want to minimize N=10 f=@(x) ((0.0011*(x(2:1*N)-x(1:N-1)))'*exp(-0.00...

plus d'un an ago | 1 answer | 0

Question

Convert tables to arrays in a for loop

hi there, I have some tables named (data_1, data_2 ,data_3, data_4,data_5) is it possible to convert them to arrays by usi...

plus d'un an ago | 1 answer | 0

Question

ThingSpeak internal server error

Hi all, I am trying to send data to thingspeak server through a channel by using the commands thingSpeakWrite. However I g...

plus d'un an ago | 1 answer | 0

Question

Sending vectors in things Speak

Hi all, I have created a private channel with 4 fields. The first 3 fields have only one value so it's ok, however the fourt...

plus d'un an ago | 0 answers | 0

Question

Error in Matlab MQTT file

Hi all, I'm trying to run a file regarding the MQTT in maltab, which I donwloaded the from matlab website : https://ch.mat...

plus d'un an ago | 0 answers | 0

Question

define parameters in binary format

Hi everyone, I'm trying to transmit data using ZigBee with QPSK modulation. However I don't understand how in matlab I can...

plus d'un an ago | 1 answer | 0

Question

Matlab compatible with multi-agent systems

Hi all, I have a general question. I have some script files in matlab and I wanna use some information from them to send t...

plus d'un an ago | 0 answers | 0

Question

For loop within a function f

Hello all, I'm trying to get the following function by using a for loop: f=@(x) ((0.0011*(x(2:1*N)-x(1:N-1)))'*exp...

plus d'un an ago | 2 answers | 0

Question

Diagonal of a non-squared martrix

Hello all, I have a matrix A=zeros(179,716) and I am trying to put the value "1" in its diagonal however it's not a s...

plus d'un an ago | 2 answers | 0

Question

GA best f(x)/ mean f(x) don't change

Hi all, I'm using GA for optimization and my problem is that I'm getting the same best and mean value and it doesn't change a...

presque 2 ans ago | 1 answer | 0

Question

GA error "your fitness function must return a scalar value"

Hi all, I am trying to use GA to minimize a function which is like this: f=@(x) ((0.0011*(x(2:180)-x(1:179)))'*exp...

presque 2 ans ago | 1 answer | 0

Question

LP error the number of rows of A must be the same with b

Hi again, I am trying to run and LP optimization. However, I am getting the following error "The number of rows in A mu...

presque 2 ans ago | 1 answer | 0

Question

LP optimization error for the objective function

Hi all, I am trying to run an LP optimization. My objective function is f= @(x) 3*x(1:N)-2*x(N+1:2*N)-5*x(2*N+1:3*N)-3*x(3...

presque 2 ans ago | 1 answer | 0