Answered

How to put a title on a colorbar?

Alternatively, hcb=colorbar; hcb.Title.String = "A Title"; Among the properties of "hcb" there is "Title", which is a Text da...

How to put a title on a colorbar?

Alternatively, hcb=colorbar; hcb.Title.String = "A Title"; Among the properties of "hcb" there is "Title", which is a Text da...

2 years ago | 2

Question

Understanding why GA's penalty profile is so similar for any run

I am running a genetic algorithm with only nonlinear inequality constraints. The solutions is an array of "nvars" integers that ...

2 years ago | 1 answer | 0

Question

"Failure in initial user-supplied nonlinear constraint function evaluation" in a ga() with integer variables and non-linear inequality constraints

(Edit: Please read answers/comments before pointing out code mistakes.) I am trying to run a GA where the solutions are an arra...

2 years ago | 1 answer | 0

Question

How to show a seconds plot axis ticks as hh:mm

[Edited to clarify that X is a 2x2, part of a meshgrid.] Assume the data for the x-axis is duration in seconds, in both directi...

2 years ago | 1 answer | 0

Question

Extra independent component in ode integration affects other components

I am trying to understand how the ode functions in MATLAB work. In this case, I am running an ode45 or ode113 with a state that...

2 years ago | 1 answer | 0

Question

Order of elements inside sqrt/exponentiation changes ode output

I am running a code that runs an ode in which the equations of motion are exactly the same for both cases (except the line where...

2 years ago | 1 answer | 0

Question

Ways to shade points-delimited area or smooth the edge

Hi, I have a plot created from a bunch of points, that looks like this: The code looks like this: for k = 1:size(Points,1) ...

3 years ago | 1 answer | 0