Question

Removing a row from a matrix based on certain conditions

I have three variables t_SS, t_A, and G and all of them have the size of 10000 X 8. I'm looking for away to remove the entire r...

3 years ago | 1 answer | 0

Question

Create a Random log normal distribution from given mean and variance of a normal distribution

I have normal distributions with their means and stand deviations and I’m trying to great their lognormal distributions. Althoug...

3 years ago | 1 answer | 0

Question

How to add fixed Colorbar based on a vector for 2D scatter plot with 3 vectors

I want to compare two [2D scatter] plots that both have three variables (x,y,z). I'm plotting x against y and showing vector z ...

3 years ago | 1 answer | 0

Question

Splitting a matrix into group based into the first column and select the maximum value from the second column for each interval

I have a big matrix,x, with size of 21,6000 x 2. The first Column is A and The second one is B. I'm looking for away to split th...

3 years ago | 2 answers | 0

Question

Matching the maximum Values in a matrix from another vector

I have a matrix with size of 21600 x 2 as Matrix_Vector = [STD_v,NPV_v]; I'm trying to find the values that matching xvalues = [...

3 years ago | 1 answer | 0

Question

Find the second derivative of an integral function

Can anyone please help me with this problem. I have an integral function that I would like to differentiate it twice to find if ...

3 years ago | 0 answers | 0

Answered

Include the name of each category in x-axis in a Plot

if true % code f(j) = figure; % Create axes axes1 = axes('Parent',f(j)); hold(axes1,'on'); pl...

Include the name of each category in x-axis in a Plot

if true % code f(j) = figure; % Create axes axes1 = axes('Parent',f(j)); hold(axes1,'on'); pl...

3 years ago | 0

| accepted

Question

Include the name of each category in x-axis in a Plot

Can anyone please help me on how to show the name of each category on a MATLAB plot. I know I can do it on a Bar chart but I nee...

3 years ago | 1 answer | 0

Answered

Running an m-file in each subfolders

I just updated the code and it is working now thanks. run(fullfile(folder,nFile{k},'TESTING_4000.m'));

Running an m-file in each subfolders

I just updated the code and it is working now thanks. run(fullfile(folder,nFile{k},'TESTING_4000.m'));

3 years ago | 0

| accepted

Question

Running an m-file in each subfolders

I'm looking for away to access subfoders and run script ('TESTING_4000.m') in each subfolder. Not sure what I'm missing in the c...

3 years ago | 1 answer | 0

Question

scatter plot with different legend and color

I'm trying to make a scatter plot for two vectors mean_vector_15 (1X8) and STD_Vector_15 (1X8). I want to make each dot with dif...

3 years ago | 1 answer | 0

Question

Opening folders and read its information

I'm new to the field of creating or opening folders from a script. I have tried many things and I always get "the file was not f...

3 years ago | 1 answer | 0

Question

Cumulative distribution function for non-normal distribution

I have data that is not normally distributed and I'm trying to create its CDF; any idea please? Thanks

3 years ago | 1 answer | 0

Question

log of a vector

I need a help with taking the log of vector C, however when I do it I get some complex numbers. I understand this happens for th...

3 years ago | 3 answers | 0

Question

3D Plot with Four Variables

Hello, I have four variables (Demand, NPV_all, STD_all, STD_In) and I would like to plot them in a 3D plot. I have created the p...

3 years ago | 1 answer | 0

Answered

Plotting a huge matrix

If you do not want to include outliers then use this: if true boxplot(y,'symbol','') end

Plotting a huge matrix

If you do not want to include outliers then use this: if true boxplot(y,'symbol','') end

3 years ago | 0

Answered

Plotting a huge matrix

You are all right but I just wanted to see the whole dense lines. I'm using now boxplot instead since I could not show all the l...

Plotting a huge matrix

You are all right but I just wanted to see the whole dense lines. I'm using now boxplot instead since I could not show all the l...

3 years ago | 0

Question

Plotting a huge matrix

I have a big matrix (Supply) with size of 21 X 1000,000 and I want to plot each column against a fixed time vector as stairs(...

3 years ago | 3 answers | 0

Question

I cant find GA Optimization in 2018 Matlab

I downloaded the new version of 2018 MATLAB and I cant find GA optimization as before. Would you please help.

3 years ago | 1 answer | 0

Question

Creating Random Log Normal Distribution

I'm a bit confused with converting a normal distribution to a log normal and then creating random numbers. I'm not sure if what ...

4 years ago | 0 answers | 0

Question

fplot a function in different intervals

I'm trying to plot a function in two different intervals. The function is the following: if true G = [14000000 ...

4 years ago | 1 answer | 0

Question

Convert structure to a vector?

Dear all, I need a help with accessing and converting a structure if true G = {'A', 'B'}; A = 1; B = 2...

4 years ago | 1 answer | 0

Question

How can I convert the following to a vector

How can I convert the following G = [20] [15] [4.5000] to a vector as G = [20 15 4.5]

4 years ago | 1 answer | 0

Question

How to pass mat file as an argument?

Is there a way to pass mat file through a function. Something does not require any if statement. Output = myfun(filename)

4 years ago | 0 answers | 0

Question

Customised output function for ga

I have been looking how to create my own output function in GA to get each x and fval of each iteration and generation. Although...

4 years ago | 2 answers | 0

Answered

Passing Extra Parameters in Optimization Output

I tried it but it shows the z value at the minimum point of y. Is there a way to show the value of z at all values of y; not onl...

Passing Extra Parameters in Optimization Output

I tried it but it shows the z value at the minimum point of y. Is there a way to show the value of z at all values of y; not onl...

4 years ago | 0

Question

GA optimization with multiple variables and constraints

I have a function named (Kings) that I would like to optimize using GA. So far, I was able to put this problem. However, I'm str...

4 years ago | 0 answers | 0

Question

How to present priority list in an optimization problem?

I need help with an optimization problem please. My model is a non linear model and I need to optimize x which has two varia...

4 years ago | 0 answers | 0

Question

Splitting matrices into small matrices based on column values

I have two matrices, A and B where A is the name of each field and B is their corresponding productions as: A = [3 2 1 ...

4 years ago | 0 answers | 0

Question

How to compute Permutation with repetition, (One Value From Each Vector Only)?

I’m trying to create a permutation with Field_A, Field_B, Field_C, taking a value from each field once a time to create a vector...

4 years ago | 1 answer | 0