Question

Compare two matrices and select max one based on the a column

I have two matrixes and I want to compare the last column. Then select the max one and the whole corresponding row. For exampl...

20 dagar ago | 2 answers | 0

Question

Summing the row of a matrix that meet a condition from another matrix

I need help please and thanks for looking into this I have two Matrixes with the same size as A and B. As the following A =...

25 dagar ago | 1 answer | 0

Question

How to change Y-axis in subplots of Boxplot on the same figure

I need help with creating 4 boxplots in one figure where in each subplot I would like to assign the ylim. In this example, the y...

ungefär en månad ago | 1 answer | 0

Question

Split the data into group then graph them

I have a big matrix as [ENPV, SD, R]; I would like to split R into 3 groups based on criteria as Group 1 when R is betwe...

ungefär 2 månader ago | 1 answer | 0

Question

How to update json file with MATLAB?

I have json file that is read by MATLAB script. I’m looking for a way to update the file since there are many to update. I know ...

ungefär 2 månader ago | 1 answer | 0

Question

Find that max and its index for data with multiple data values per index

Hello, I looked around and found similar questions that have been answered (here 1 and here 2) but not sure how to find the...

2 månader ago | 1 answer | 0

Question

Greetings, Anyway to help to create ridgeline by MATLAB

Greetings, Anyway to help to create ridgeline by MATLAB as the attache link please? https://www.data-to-viz.com/graph/ridgeli...

4 månader ago | 2 answers | 0

Question

Adding additional information and drawing to explain the axis better

I have a script that creates a plot, but I would like to explain the axis in a better way. I have tried by adding additional inf...

5 månader ago | 0 answers | 0

Question

change the number of bins in corrplot function?

Hello, Is there anyway to change the number of bins in corrplot function? I would like to use 10 bins instead let MATLAB choos...

5 månader ago | 1 answer | 0

Question

'String scalar or character vector must have valid interpreter syntax:' for Sigma

Hello, I have this code, and I'm trying to type the sigma symbol, but it is not working. It works for different figures but no...

6 månader ago | 1 answer | 0

Answered

How to change the color of individual bars in a bar chart?

how would you show the legend color here?

How to change the color of individual bars in a bar chart?

how would you show the legend color here?

6 månader ago | 0

Question

How to change Variable names of corrplot

I'm trying to change the variables names of a corrplot from the default one, but It is not working. Can you please help Varia...

6 månader ago | 1 answer | 0

Question

Plotting multiple ecdf in one plot with specific line color and width

I'm plotting ecdf for a matrix where I want to chose the line color and type per column. I have this code but not sure how to ch...

7 månader ago | 1 answer | 0

Question

calling a matrix with different names in a for loop

I have three matrixes with different names as NPV_1, NPV2 and NPV_3. I have tried the below but It did not work. Can you please ...

7 månader ago | 1 answer | 0

Question

How to create multiple cdfplot in one graph?

I have tried to create a multiple cdfplot in one graph as below but I need an efficient way since I'm using this in a big matrix...

7 månader ago | 1 answer | 0

Question

Returning an additional value that is not part of the fitness function or objective for all population evaluation in GA

Can anyone please help by showing the code how can I return an additional value (Sigma) that is not part of my fitness function ...

8 månader ago | 1 answer | 1

Question

Collecting a value (Sigma ) over all of the objective function evaluations while using GA optimizer

I want to collect all the values of (Sigma ) over all of the objective function evaluations. I'm not really sure how to do this ...

10 månader ago | 0 answers | 0

Question

How to return an additional parameter that is not part of the population nor the objective in ga MATLAB?

I'm looking for a way to retun an additional variable (risk) with my objective (ecnomic_value) paramter for each population (wei...

10 månader ago | 0 answers | 0

Question

How to return an additional variable that is not part of the objective for each population while using GA optimizer?

I have a function that I'm optimizing by GA. In addition, I would like to show all the population (by using an output function)...

10 månader ago | 1 answer | 0

Question

Number of Population and Generation in GA?

I have a function where I'm trying to optimize. So, Im using GA and I have run the optimizer on the defult case. Is there anyway...

11 månader ago | 1 answer | 0

Question

Scatter plot with a color variation based on a third vector

I have three variables (Return, Risk, Supply) where I would like to present them on a scatter plot as the attached. I would like...

11 månader ago | 1 answer | 1

Question

How to find the final formula or equation that is produced by regression learner.

I have created a trainedModel for my data by using Train Regression Models in Regression Learner App. After I exported my model ...

11 månader ago | 0 answers | 0

Question

gamultiobj optimizer is not working and I get the following error massage "Reference to non-existent field 'Best'"

I have a function that its single objective was optimized by using ga optimizer in MATLAB. Everything is working. Now, I would l...

11 månader ago | 0 answers | 0

Question

How to change the boxplot color manually

I have a boxplot figure that was saved in my folder but I'm not really sure where the data is. Is there away to change the color...

11 månader ago | 0 answers | 0

Question

Does PCA funciton normalize the data while it generates the biplot?

Dear all, I have 16 variables and I would like to use PCA to understand how they are correlated among each other’s. The first 8...

11 månader ago | 0 answers | 0

Question

My gamultiobj is not working but it works for the ga?

I have a function that its single objective was optimized by using ga optimizer in MATLAB. Everything is working. Now, I would l...

11 månader ago | 0 answers | 0

Question

Find the max value and index of each interval in a big matrix

I'm looking for a way to split my data into group then find the maximum and index of each group. So, I have this code which give...

11 månader ago | 1 answer | 0

Question

How to find the index of splitapply

I have this code where I split the data into intervals and I look to find the maximum value for each interval as below. I need t...

11 månader ago | 1 answer | 0

Question

Find the highest value of y for each x value

Can anyone please help me with this quesiton. I have a big matrix where I’m only interested to plot the highest value of y for ...

11 månader ago | 1 answer | 0

Question

How to plot A Curve That Connects The Highest Values in Y-Axis

Can anyone please help me to create the curve as below. I'm looking for away to plot the highest point at y-axix for all x-axis....

12 månader ago | 1 answer | 0