photo

Noob


Last seen: Today Attivo dal 2017

Followers: 0   Following: 0

Statistica

  • Thankful Level 4
  • Thankful Level 2

Visualizza badge

Feeds

Visto da

Domanda


Best way to plot a surface whose matrix has values of +/- infinity
Hi there! What is the best way to plot a 3D surface whose matrix C = A ./ B contains values of +/- infinity (whenever entries in...

1 giorno fa | 1 risposta | 0

1

risposta

Domanda


For 3D surface plots, do you like the command, 'shading interp'?
Hi there! For 3D surface plots, do you like the command, 'shading interp'? When I use it, I notice that the color variation on ...

3 giorni fa | 1 risposta | 0

1

risposta

Domanda


How to “color” the first curve moving across x-axis in a 3D surface plot?
Hi there! I’d like to “color” the first curve in my 3D surface plot differently from the colormap colors, say, black, to contras...

4 giorni fa | 1 risposta | 0

1

risposta

Domanda


From making 2D line plots to making 3D surface plots: How to preserve my current workflow?
Hi there! Below, I think the explanation, originally a comment by me, is more clear, so I am posting it here as the question. ...

7 giorni fa | 2 risposte | 0

2

risposte

Domanda


Error using surf (line 71) Z must be a matrix, not a scalar or vector.
Hi there! I currently have a tiledLayout plot with six tiles; the tiles are plotted against two variables alpha and beta, and I...

9 giorni fa | 1 risposta | 0

1

risposta

Domanda


Ideas for presenting data vs. two variables,
Hi there! I currently have a beautiful figure that presents data vs. two variables. I went from using Matlab's subplot function...

9 giorni fa | 1 risposta | 0

1

risposta

Domanda


How to remove extraneous Matlab-generated vertical lines that connect function values at jump discontinuities?
Hi there! I previously asked a similar question but I now have a more focused question to ask, I think: When plotting a functi...

14 giorni fa | 1 risposta | 0

1

risposta

Domanda


Can I plot two figures simultaneously but with less data for the second figure?
Hi there! Let's say I want to plot the first figure for theta = linspace(0, 2*pi, 1001), but for the second figure I only want ...

15 giorni fa | 1 risposta | 0

1

risposta

Domanda


When plotting functions like 1/sin(x), how can I remove the vertical lines at the points of discontinuity?
Hi there! When I plot functions such as 1/sin(x), there are vertical lines that appear at the points of discontinuity. How can I...

16 giorni fa | 3 risposte | 0

3

risposte

Domanda


Is it possible to plot a vector arrow using quiver( ), then, negate the vector so it points in the opposite direction, but then add arrowhead in original direction?
Hi there! This is somewhat embarassing, but I've been trying this little thing for a while now, so I figured it's a good time ...

16 giorni fa | 1 risposta | 0

1

risposta

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

circa un mese fa | 2 risposte | 0

2

risposte

Domanda


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

circa un mese fa | 0 risposte | 0

0

risposte

Domanda


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

circa un mese fa | 1 risposta | 0

1

risposta

Domanda


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 2 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

2 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

3 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

3 mesi fa | 2 risposte | 0

2

risposte

Domanda


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

3 mesi fa | 1 risposta | 0

1

risposta

Domanda


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

risposta

Domanda


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

risposta

Domanda


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

risposta

Domanda


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

oltre un anno fa | 3 risposte | 0

3

risposte

Domanda


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

oltre un anno fa | 1 risposta | 0

1

risposta

Domanda


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

risposta

Domanda


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

risposta

Domanda


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

risposte

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 4 anni fa | 1 risposta | 0

1

risposta

Carica altro