Community Profile # Taro

Last seen: Today 2019 이후 활성

#### Statistics

All
• • • 배지보기

#### Content Feed

보기 기준

질문

Is there a one-line code for this?
% I would like to go from A = [1 1;2 2;3 3;4 4;5 5] % to A = [1 1;2 2;3 3;4 4;5 5;1 2;2 3;3 4;4 5;5 6]; ...

약 1달 전 | 답변 수: 1 | 0

### 1

답변

질문

Why does the Simulink point-mass high-precission orbit propagator increase semi-major axis over time?
I am using the "Orbit Propagator High precision" built-in Simulink block. I have set the gravity model to point-mass, and the i...

약 1달 전 | 답변 수: 0 | 0

### 0

답변

질문

Simulink: Is there a difference between Keplerian propagator and point-mass high precision propagator?
In order to see the difference between the fast yet simple propagator and the high-precision propagator of Simulink, I created a...

약 1달 전 | 답변 수: 0 | 0

### 0

답변

해결됨

Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...

6달 전

해결됨

Is my wife right?
Regardless of input, output the string 'yes'.

6달 전

해결됨

Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

6달 전

해결됨

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

6달 전

질문

Record best solution in each GA generation running with UseParallel=true
Hello, Is there a way to record the best solution at each generation running with parallelization? (that is, with UseParallel=1...

7달 전 | 답변 수: 1 | 1

### 1

답변

질문

How can one pass arguments to a custom CrossoverFunction in ga?
Hello, I am implementing a custom crossover function following the documentation. I need to pass 2 additional variables along ...

9달 전 | 답변 수: 1 | 0

### 1

답변

질문

Is it bad practice to have nonlinear constraints array change size depending on the input solution in a genetic algorithm?
In a nonlinear ga, the nonlin constraint function is evaluated with each solution, and the output is [c,ceq]. These arrays conta...

9달 전 | 답변 수: 1 | 0

### 1

답변

질문

Is slicing one big matrix more efficient than storing smaller matrices in a struct?
An example of the former would be: % allcases = % % +---------+------------+------------+------------+-----+-------------+ ...

9달 전 | 답변 수: 1 | 0

### 1

답변

질문

Efficient way/best practice to slice array under a logical condition as well as other conditions
I did not know how to properly title this question, so please bear with me. Simply put, with the following two arrays: A = [0 ...

10달 전 | 답변 수: 1 | 0

### 1

답변

질문

How do MATLAB workers/PC cores divide the work in a parallelized optimization inside a parfor loop?
For example: parfor i = 1:20 options = optimoptions('ga','UseParallel',true,'UseVectorized',false); x = gamultiobj(Ob...

12달 전 | 답변 수: 1 | 0

### 1

답변

질문

Polar plot points appear on wrong position
Hello, I am plotting values in an array of three parameters (angle, radius, and third parameter which is colored) points with a...

12달 전 | 답변 수: 1 | 1

### 1

답변

질문

How can I show radial ticks and axis on top of a polar plot?
Although not a MWE, this is what the code looks like: figure; polaraxes; hold on; polarscatter(vara,varb,[],varc,'.'); c =...

약 1년 전 | 답변 수: 1 | 0

### 1

답변

답변 있음
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...

약 1년 전 | 0

질문

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

약 1년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 1년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

약 1년 전 | 답변 수: 1 | 0

### 1

답변

질문

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

1년 이상 전 | 답변 수: 1 | 0

### 1

답변

질문

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

1년 이상 전 | 답변 수: 1 | 0

### 1

답변

질문

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

2년 이하 전 | 답변 수: 1 | 0

답변