질문


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

거의 6년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 6년 전 | 답변 수: 3 | 0

3

답변

질문


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

대략 6년 전 | 답변 수: 2 | 0

2

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 6년 전 | 답변 수: 3 | 0

3

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 0 | 0

0

답변

질문


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

6년 초과 전 | 답변 수: 0 | 0

0

답변

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 0 | 1

0

답변

질문


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

6년 초과 전 | 답변 수: 2 | 0

2

답변

답변 있음
Diagonal of a non-squared martrix
Alright thanks a lot!!!!

6년 초과 전 | 0

| 수락됨

질문


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

6년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Reshape matrix to have the same value every 30 cells
Hi All, I have a question: I have a matrix A=[10; 20; 30; 40; 50; 50; 60] How can I reshape it in order to have a ma...

거의 7년 전 | 답변 수: 2 | 0

2

답변

질문


fmicon constraint violation issue
Hi all, I am running an optimization using fmicon, when it runs I get this message "Optimization stopped because the rela...

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


Error with Fmicon objective function
Hi all, I am trying to run a non linear optimization with fmincon, I have set the equality and inequality constraints but I a...

거의 7년 전 | 답변 수: 0 | 0

0

답변

질문


Run a script and use some variables as inputs in another script
Hi all, I have a script file and I would like to run it and export two variables (lets say "45"and "1") In order to use th...

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


plot a graph with two axis
Hi there, I have a matrix 1440x3 and I would like to plot a graph with two axes. (x axis the same = 1440 elements) the fir...

7년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Fitting data for each row of a matrix
Hi there, I have a matrix 8760x8 and I would like to fit the data of each row (8 values) with a vector like this: [1 2 3 4 5...

7년 초과 전 | 답변 수: 1 | 1

1

답변

질문


Change the x axis in a figure with time
Hi all, I have a question: I have a figure and I want to change the x axis (which are numbers from 1 to 48) to time scale,...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Deleting rows of an array
Hi all, I have an array 48X365, where some of the columns are zero! Is there any way to delete them and get an array witho...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


Adding values in an array within limits
Hi all, I have a vector A=[1 2 3 4 5 4]' I would like to get from vector A, a vector B where its elements are the same wit...

7년 초과 전 | 답변 수: 2 | 0

2

답변

질문


estimate the parameters of an equation
Hi there, I have a question: I have an equation like this: 45=a*5^b; is there any way to estimate a and b only from thi...

7년 초과 전 | 답변 수: 2 | 0

2

답변

더 보기