Community Profile

photo

Mitsu


Last seen: 1년 초과 전 2019년부터 활동

Followers: 0   Following: 0

통계

All
  • Solver
  • Thankful Level 3
  • First Answer

배지 보기

Feeds

보기 기준

질문


Why do EOPs affect both ECI and ECEF in the Orbit Propagator simulink block?
I am using an Orbit Propagator (https://au.mathworks.com/help/aeroblks/orbitpropagator.html) in Simulink. According to the docu...

1년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Why does num2str() of 138.97 return 138.96999999999999886?
I use num2str to set parameters into a Simulink model via set_param. The parameters are sometimes irrational fractions (hence ...

1년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How does using same variables for both objective and constraints affect optimization results?
I am running problems with fmincon. I usually work with 3 variables ceq = [a,b,c] as constraints that I want to be zero. While ...

거의 2년 전 | 답변 수: 1 | 0

1

답변

질문


Recommended approach to "resetting" the workers for each new parallel computation?
Every time I run a script, I want the parallel computation to be ran smoothly, regardless of any previous tasks the workers were...

거의 2년 전 | 답변 수: 1 | 1

1

답변

질문


Difference between SQP and Active Set? I thought active set was a method used within SQP
I believe SQP is a method that iteratively solves QP subproblems. When solving QP problems, one has to deal with inequality con...

거의 2년 전 | 답변 수: 1 | 2

1

답변

질문


What is the sample time of discrete blocks that inherit from a 0-sample-time continuous signal block?
Picture a simple Simulink model with a sine wave function of sample time set to 0. This is connected to a Unit Delay block with...

거의 2년 전 | 답변 수: 0 | 0

0

답변

답변 있음
Matlab and SPICE toolkit and parfor
When using SPICE libraries, I run the cspice_furnsh function for each parallel thread before the parfor loop where they will be ...

2년 초과 전 | 2

질문


Count instances of subarray inside array
For an array A = [2,2,2,2]; I would like to count how many times [2,2] appears in A, using each value only in one possible pa...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to store 2D arrays in a for loop inside a parfor loop?
I compute e.g. a 3x1 array inside the inner for-loop. In each iteration of this loop, the 3x1 array is saved in a matrix. At th...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


Is this combination of parfor and global variables prone to errors?
In the main script mainScript.m, a parfor loop goes through N cases. In each case of the parfor loop, the function principalFu...

2년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
why are my graphs not publishing?
Firstly, For problem 3 and problem 4, you can solve your issue by adding hold on after you define the figure. So instead of f...

2년 초과 전 | 0

질문


Is there a way to overlap two markers on the same legend label?
In the plot, I resort to plot(x, y, 'bx' , 'DisplayName', 'Data label'); plot(x, y, 'bo' , 'HandleVisiblity'); In the legend,...

2년 초과 전 | 답변 수: 0 | 0

0

답변

질문


Open .m files in current MATLAB instance from Windows Powershell
I am trying to open matlab files via matlab file.m from Windows PowerShell, so that I can proceed to edit them in MATLAB. Howeve...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


How to deal with two ode events triggered together?
I run an ode() with an event function that contains multiple conditions. Sometimes, event 1 is triggered alone, sometimes event...

2년 초과 전 | 답변 수: 0 | 0

0

답변

질문


How to prevent plotted contents to spill outside of the axes lines
Using set(gca, 'Layer', 'top') I end up with this: Is there a way to completely hide plotted contents that appear beyond t...

2년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 3년 전 | 답변 수: 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...

거의 3년 전 | 답변 수: 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...

거의 3년 전 | 답변 수: 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...

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

문제를 풀었습니다


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

대략 3년 전

질문


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

3년 초과 전 | 답변 수: 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 ...

3년 초과 전 | 답변 수: 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...

3년 초과 전 | 답변 수: 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 = % % +---------+------------+------------+------------+-----+-------------+ ...

3년 초과 전 | 답변 수: 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 ...

3년 초과 전 | 답변 수: 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...

3년 초과 전 | 답변 수: 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...

3년 초과 전 | 답변 수: 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 =...

거의 4년 전 | 답변 수: 2 | 0

2

답변

더 보기