photo

Rachel Ong


Last seen: 2 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 3
  • Thankful Level 2

View badges

Feeds

View by

Question


Is it possible to do a search in a table for a value nearest to a number I want?
If I have an array of 100x2, is it possible to find the index of the row number nearest to a number I want? For example somethin...

2 years ago | 2 answers | 0

2

answers

Question


I keep getting the solve stops prematurely for fsolve?
Why do I keep getting this error? I think the equations are solvable though? %% ROC ESTIMATION FOR PS = 3 WITH DIFFERENT THRUS...

2 years ago | 1 answer | 0

1

answer

Question


Is this how I find the area under my graph?
I have this code which takes too long to run so I would save you the trouble and just attach a snippet of how I plotted the grap...

2 years ago | 1 answer | 0

1

answer

Question


Why do I get the error saying I did not assign values to a call? I did assign my values after getting them from a function though? Anyone able to help me out and explain?
I got the script as attached below. I did assign T P rho and speedsound after getting it from the loop but I am getting the erro...

2 years ago | 3 answers | 0

3

answers

Question


How do I interpolate to get the y axis values when I sub in the x axis values? My data is like a plot with no function associated to it.
I have a set of data points (an array, column 1 is for x values and column 2 is for y values) and I want to be able to sub in x ...

2 years ago | 1 answer | 0

1

answer

Question


Hello, I am trying to solve the ODE but I have an error I do not understand how to solve. Would appreciate some help. Thank you!
I have this set of ode and I would like to solve it with ode45. I have this one variable deltae and this depends on the solution...

2 years ago | 2 answers | 0

2

answers

Question


Solving a system of nonlinear equation using steepest descent for optimal control
Hello, anyone has an example on how I should use the steepest descent algorithm to solve for optimal controls with free final ti...

3 years ago | 1 answer | 0

1

answer

Question


Hello. Anyone knows why the fminsearch does not work. Is it the way the code is structured ?
clear all clc S = 17.1 W = 1248.5*9.81 rho = 1.225 speedsound = 340.26 h = 0 % u = x(1) % CL = x(2) % x0 = [20,0]...

3 years ago | 1 answer | 0

1

answer

Question


Problems on bvp4c solver because of its initial guess and a singular jacobian?
Hello, I have inputted what I can into the solver but I am missing the initial guess (I do not know how to do the initial guess ...

3 years ago | 0 answers | 0

0

answers

Question


I need help understanding one line of the code for a 2pbvp. Also, anyone knows if there are other methods of writing the solinit part of the code?
I have this example here but I have problems understanding the code. If some one can help explain that to me I'll greatly ap...

3 years ago | 1 answer | 0

1

answer

Question


Hello, when I am trying to solve my equations using dsolve, I get an empty sym for my dsolve.
The above is the equations I used to do my diferentiation wrt different states to get the hamiltonian equations for dsolve a...

3 years ago | 1 answer | 0

1

answer

Question


Anyone knows how to solve this size compatibility issue? I got this from an example and I am trying to understand the script.
%% Solution Using Symbolic Toolbox (STB) in MATLAB Version 6.0 %% Example 2.14 pg 77 of NAIDU optimal control book --> not work...

3 years ago | 1 answer | 0

1

answer

Question


I have an error where it says unrecognized function or variable x when using fsolve.
I have a variable that is called x(2) and I need to solve this using fsolve. However, variables like rho and speedsound are depe...

3 years ago | 1 answer | 0

1

answer

Question


Hi, is it possible to have variables in an ode45 that varies according to another function?
This is my ode45 that I have to solve and, actually, the variables rho and speedsound (i have commented them out in the first sc...

3 years ago | 1 answer | 0

1

answer

Question


I have an error but I dont know where it is referring to "Index exceeds the number of array elements"
This is my code for the intepreted MATLAB function on simulink function [XDOT] = RCAM_model(X,U) % ---------- State and co...

3 years ago | 0 answers | 0

0

answers

Question


I have an error I got from using fsolve but I do not understand why.
clear all; clc; W = 1248.5*9.81; S = 17.1; K = 0.05; CDe = 0.03; h = 0; [T, p, rho, speedsound] = ...

3 years ago | 1 answer | 0

1

answer

Question


I have an invalid use of operator error
function [T p rho] = atmos(h) h1 = 17; % Height of tropopause h2 = 20; % End height of table g = 9.81; R = 287; c ...

3 years ago | 1 answer | 0

1

answer