Noob
Followers: 0 Following: 0
Statistica
34 Domande
0 Risposte
RANK
197.433
of 296.117
REPUTAZIONE
0
CONTRIBUTI
34 Domande
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
76.47%
VOTI RICEVUTI
0
RANK
of 155.395
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
Concerned that matlabFunction( ), when converting from symbolic to numerical, changes the sizes of matrices and vectors,
Hi there! I am currently concerned that the function matlabFunction( ), when converting from symbolic to numerical, changes the...
26 giorni fa | 2 risposte | 0
2
risposteDomanda
Why does Matlab tell me that my ODE function returns a vector of length 12, while the length of my initial conditions vector is 6?
Hi there! I'm getting an error message from Matlab, telling me that my ODE model returns a vector of length 12, while the lengt...
27 giorni fa | 0 risposte | 0
0
risposteDomanda
'Matrix dimensions must agree' error, when using the backslash operator to solve Ax = b,
Hi there! I am getting a 'matrix dimensions must agree' error message when using the backslash operator \ to solve Ax = b. I we...
27 giorni fa | 1 risposta | 0
1
rispostaDomanda
Deciding when to call a Matlab function: Within my symbolic math code, or within my converted numerical code?
Hi there! I wrote a symbolic math code and used the algebraic solver solve( ) to get the equations that I want. I then converte...
circa un mese fa | 1 risposta | 0
1
rispostaDomanda
Writing ODE equations for ode45 to solve;
Hi there! I have a basic question to ask here, regarding writing the first-order equations for ode45 to solve. Let's say I am ...
circa 2 mesi fa | 1 risposta | 0
1
rispostaDomanda
ode45 integration issues for some choices of physical parameters,
Hi there! I have a simple, two-dimensional, ode model that solves for the trajectory of a flat plate falling through a fluid fl...
2 mesi fa | 2 risposte | 0
2
risposteDomanda
Simple question about creating an anonymous function,
Hi there! Using a Matlab function file, I wrote an ode model model(t, z, p), where p stores all of my physical parameters, suc...
2 mesi fa | 2 risposte | 0
2
risposteDomanda
How to animate background flow field that an object is moving through?
Hi there! I now have a decent code that solves an ode model of mine, using ode45. It is about a rigid plate falling freely thro...
2 mesi fa | 1 risposta | 0
1
rispostaDomanda
How can I run code just once, for multiple intervals of numbers?
Let's say I want to calculate things for alpha ranging from 0 to 2pi. I've written if / else-if statements to do this: alpha ...
3 mesi fa | 1 risposta | 0
1
rispostaDomanda
How to loop through values?
Let’s say I have 11 values of beta, evenly-spaced with linspace( ). And let’s say for each value of beta, I want to compute some...
3 mesi fa | 1 risposta | 0
1
rispostaDomanda
Only the first if-statement block executes,
Hi there! I wrote an if-statement, followed by an if-else statement, followed by another if-else statement, followed by the end...
3 mesi fa | 1 risposta | 0
1
rispostaDomanda
Using an anonymous function handle as input into another function handle
Hi there! I have a question that's mostly about syntax: Let's say I write the anonymous function handle (for a program to give ...
circa un anno fa | 3 risposte | 0
3
risposteDomanda
Writing a system of ODEs for ode45
Hi, I wrote a .m-file that has three second-order differential equations, broken down into six first-order equations. When I r...
circa un anno fa | 1 risposta | 0
1
rispostaDomanda
How to put fsolve in a loop, using 2 unknowns?
Hi, I want to write a code that asks fsolve to go through some combinations of guesses and then find all the roots (xdot, yd...
oltre 3 anni fa | 1 risposta | 0
1
rispostaDomanda
Filled figures, saved as eps or pdf, now have weird lines when zoomed in, while png files do not,
Hi, My filled figures, e.g. ellipses, using either the fill() or patch functions, and saved as eps or pdf files, now have weir...
quasi 4 anni fa | 1 risposta | 0
1
rispostaDomanda
Choosing more stringent values for RelTol and AbsTol in ode45, for smooth functions such as sin(t) or cos(t), does not change the numerical solutions,
Hi, I'm playing with the RelTol and AbsTol options for the ode45 solver, choosing more stringent values such as 1e-10 for bo...
circa 4 anni fa | 0 risposte | 0
0
risposteDomanda
How does choosing more stringent RelTol and AbsTol values in ode45 compare with choosing finer tspan integration time-steps?
Hi, So I modified my ode45 error tolerances, both RelTol and AbsTol, to be at 1e-10. 1e-14 or so seems to be the most strin...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
How can I get Matlab's Command Window to output the entire column vector of solutions?
Hi, Matlab's Command Window seems to cut off a long column vector of solutions. What is the default limit set to, and h...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
How to store all of the converged roots found by Matlab's fsolve algorithm?
Hi, I'm practicing with Matlab's fsolve function, and am calling it with a few nested for loops that provide fsolve with var...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
What is it called when I specify a vector output of solutions from, say, fsolve?
Hi, I have a simple question -- just a matter of lingo, I think: The fsolve algorithm gives all these outputs when it arr...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
How can I improve this really slow code, which consists of several nested for loops?
Hi, So I've written these nested for loops, but it takes a very long time to execute this code: for T = linspace( 1, 5, 1...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
In nested for-loops, how and where should I set the counting index (indices?) correctly, for doing numerical root-finding using fsolve?
Hi, Let's say I have a function, f, that maps R^3 to R^3, and I want to find its multivariable roots numerically, using fsol...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
What information is conveyed by the different colors in Matlab's contourf( ) data plots?
Hi, Matlab has a contourf( ) function, which I used a little bit last night to plot the level sets of say, Z = f(x,y) = ...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
Inner matrix dimensions must agree error message,
Hi, I'm getting an error message that says inner matrix dimensions must agree, but I checked both matrices and they seem fin...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
Do vector fields mapping R^2 to R^2 have to be coded in separate function files, or can I define anonymous functions for them directly in the script file?
Hi, I've been writing functions from R^2 to R^2, i.e. F( f_1(x,y), f_2(x,y) )= (z_1, z_2), in separate function files, and th...
circa 4 anni fa | 1 risposta | 0
1
rispostaDomanda
What is considered good practice for coding up a function's derivatives, e.g. its Jacobian and Hessian matrices?
Hi, I'm currently practicing numerical root-finding, using simple sets of nonlinear equations and writing my own solvers -- ...
oltre 4 anni fa | 1 risposta | 0
1
rispostaDomanda
Debugging Newton's Method code in two variables,
Hi, I wrote a simple code for Newton's Method in two variables but am having some trouble debugging it. Here's the message ...
oltre 4 anni fa | 1 risposta | 0
1
rispostaDomanda
How to get Matlab to return answers with ten-digit accuracy?
Hi, Answers returned by Matlab (e.g. from the ode45 solver, or from the wrapTo2Pi function that maps accumulating angles to [0,...
oltre 4 anni fa | 2 risposte | 0
2
risposteDomanda
fsolve handling a composition of functions gives the error, "not enough input arguments"
I'm having some trouble using fsolve on a composition of functions. I've tried fsolve on a much simpler composition, and it wor...
oltre 4 anni fa | 2 risposte | 0
2
risposteDomanda
How can I create elliptical-shaped markers?
I have two columns of data [X Y] that I would like to plot with elliptical-shaped markers.
oltre 7 anni fa | 1 risposta | 0