Answered

Plot a bar chart while sorting its variables and presenting the cosponsoring new sorted variables in the x-axis.

Cases = 1:19; [CV_Sorted,index] = sort(CV,'descend'); bar(CV(index)) xTick = Fields_Sorte; set(gca, 'xTick',Cases, 'xTickL...

Plot a bar chart while sorting its variables and presenting the cosponsoring new sorted variables in the x-axis.

Cases = 1:19; [CV_Sorted,index] = sort(CV,'descend'); bar(CV(index)) xTick = Fields_Sorte; set(gca, 'xTick',Cases, 'xTickL...

8 mois ago | 0

| accepted

Question

Plot a bar chart while sorting its variables and presenting the cosponsoring new sorted variables in the x-axis.

I have two vectors as below where i would like to plot them in a bar chart in a descending order while showing the corropsoing v...

8 mois ago | 1 answer | 0

Question

Creating a boxplot for every row in a matrix

I'm looking for an easy and fast way to make a boxplot for every row in a huge matrix (1000000 x 20) and showing all these boxes...

9 mois ago | 1 answer | 0

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

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

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

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

12 mois 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 = [...

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

environ un an 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...

environ un an 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...

environ un an 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'));

environ un an 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...

environ un an 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...

environ un an 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...

environ un an 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

environ un an 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...

environ un an 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...

environ un an 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

environ un an 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...

environ un an 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(...

environ un an 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.

environ un an 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 ...

environ un an 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 ...

environ un an 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...

environ un an 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]

environ un an 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)

environ un an 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...

plus d'un an 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...

plus d'un an 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...

plus d'un an ago | 0 answers | 0