Community Profile

photo

George Ansari


Aktiv seit 2017

Followers: 0   Following: 0

Statistiken

  • First Review
  • Thankful Level 3

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


sdpvar matrix in Yalmip
Dear all, I have attached the code that uses Yalmip toolbox. I cannot understand why P_reserve = 0 (RTS_24_bus_one_area_FYF.m...

etwa 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to limit a function to return results only above some threshold
Hi everyone, Assume: a = [1 2 3] b = [4 5 6] c = [7 8 9] D = myFunction(a, b, c) The function returns n by 3 matrix...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to find index of a minimum value starting from the end
I have this code: A = 1 2 3 4 5 6 7 8 9 1 1 1 1 1 2 3 ...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to look for minimum value in a vector from backwards?
Suppose I have a vector A = [5 6 4 1 1 1]; I'd like to find the index of a minimum value. If I try min function in a regular ...

mehr als 6 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


How to insert an element into matrix?
Suppose I have a matrix A = ones(4,6). I want to combine it with a vector B = zeros(1,6) to make another matrix C of size 5 by 6...

mehr als 6 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


PDF function does not give same result as normpdf
Hello all, I'm using the following function to create the PD of a RV function [ X, f ] = Normdist( mu, sigma, min_x, max_x,...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


What's wrong with the code?
The code supposed to delete an element from B cell if corresponding P = 0. Please help me to fix it. Thanks, George. L =...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to delete row in matrix or cell in a for loop?
I have the following code: L = [1 10 15]; L_cell = num2cell(L); P_max = [100;150;200]; Pg = [90 150 150]; B = [1; 2; 3]...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to reduce vectors sizes if an element in a parent vector equals to zero without accessing for loop
Dear all, I have the following code, is there a way to do the same thing but without for loop? P_max = [100 150 200]; ...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Can't get the code into the for loop
Dear all, Please help me to get the attached code into the for loop. The code must run for j=1:length(Pd). Two variables are va...

mehr als 6 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


How to create a matrix, table or a cell where in odd columns variables from matrix A and in even columns variabls from matrix B will be stored?
For instance, I have two matrices A = ones(5,24) and B = zeros(5,24), I need to create a matrix 'C', where the first column of '...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


How to reduce the number of iterations in partical swarm optimization toolbox?
Hi all! Is it possible to reduce the number of iterations in particle swarm optimization toolbox, developed by Prof.Brian Birge...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort