photo

Rachel Ong


Last seen: más de 2 años hace Con actividad desde 2021

Followers: 0   Following: 0

Estadística

  • Thankful Level 3
  • Thankful Level 2

Ver insignias

Feeds

Ver por

Pregunta


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

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

casi 3 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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

casi 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta