Frage


concatenate multiple 'OutputFcn' options in odeset?
Is there a way to output both odeplot+odephas2 after modifying the following? options=odeset('OutputFcn',@odeplot,'OutputFcn',@...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


3D plots rotated in live scripts
It seems that once 3d plots in animations are rotated, the animation can't be replayed again, for the control slider automatical...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


animation turns static in live scripts
I have the following code that works well in m files but not in live scripts because a figure pops up in a separate window and t...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


if nested functions supported in live scripts
Are nested functions supported in live scripts? Otherwise, global variables have to be declared as global?

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to output quantities involving time derivatives in pdepe
pdeval only seems to output the solution and the spatial derivative of the solution via [~,dudx]=pdeval(m,x,sol(i,:,1),x). It se...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


why does pdepe adopt Petrov-Galerkin?
pdepe is meant to solve parabolic and elliptic PDEs. Petrov-Galerkin seems to be designed to solve convection dominated ones, wh...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to output quantities within pdefun, bcfun, icfun in pdepe
How to output quantities within pdefun, bcfun, icfun in pdepe? e.g. in pdefun: function [c,f,s] = heatcyl(x,t,u,dudx) c = 1; ...

mehr als 2 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


unable to adjust real time views of surf plots in plot-drawnow animations
In plot-drawnow animations, how to use the mouse to adjust the view of a 3d surf plot? I've found that there's no response to an...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


time integration in solvepde (=pde toolbox?)
solvepde (=pde toolbox?) seem to be based on finite elements. If so what time integration (ode23 etc) is adopted?

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


different PDEs to solve through events in pdepe
There is a model defined by a pointwise PDE solving for u(x,t), i.e. it is PDE1 when u(x,t)>0 and PDE2 when u(x,t)<=0. Can one u...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


how to change time integration in pdepe
ode15s is used in pdepe. How to change it to say ode23 etc when in need?

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to stop loops or close figures in live scripts
I wanna use live scripts to run a loop updating an animation because this will allow to playback the animation. In the normal co...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


stop animations with pause()
I wanna stop/break/suspend the following animation without using ctrl+c, how? for i=1:10 plot(linspace(0,1),linspace(0,1)...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


plot style of 'OutputFcn'=odeplot in odeset
The following code can plot the solution of the ode with 'odeplot' rather than using 'plot'. options = odeset('OutputFcn',@odep...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


pdepe/pde1dm's vectorized option
In pdepe, when vectorized is turned on, the elapsed time is the same as that when vectorized is off. Why no improvement? The ...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


pde1dm with coupled ODEs
According to the pde1dm manual, pde1dm with coupled ODEs has to do with three additional arguments to the pde1dm function: [sol...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


ode23, 45, 15s, 15i for conservative ODEs
Which of ode23, 45, 15s, 15i are dissipative or anti-dissipative for conservative ODEs?

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


pde1dm compared to pdepe
pde1dm is an extended version of pdepe and it can solve equations pdepe can't solve. I wonder about the differences between thes...

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Spatial discretization in pdepe compared to others
The spatial discretization in pdepe seems to be a unique one. Could someone please explain it briefly so that it is understandab...

mehr als 2 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


whether meshes affect computational step lengths in pdepe
In pdepe the user specifies an xmesh and tmesh. Do these meshes affect what meshes and computational step lengths adopted by the...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


why 'parabolic' and 'hyperbolic' not recommended for solving PDEs
why are 'parabolic' and 'hyperbolic' not recommended for solving PDEs and instead 'solvepde' is recommended? Aren't they all bas...

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


how to sort dlarrays
How to sort dlarrays like in sort(a) , where a is a numeric array? Is there a way of sorting next(mbq) by specifying some opt...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


'addpoints' animation with a control slider
Somehow making an animation with 'addpoints' enables a control slider for the user to slide back and forth to view the animation...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


input argument order in deep learning functions
For those that have many input arguments, does the order of the input arguments affect the result of the function. For example, ...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


'trainingOptions' without 'trainNetwork' in deep learning
options = trainingOptions("sgdm", Plots="training-progress") sets training options. This setting works when training is implem...

mehr als 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


output extra variables through ode23 when there are multiple unknowns
By writing a function below, one can output extra variable v (other than unknown u): function [ut,v]=myode(t,u) ut=u;v=u+1; ...

mehr als 6 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


shortest path algorithm based on a recursive function
The following code is correct 90% of the time. Anybody can find the bug? function dis=wrong(node1,nodes,node2) % distance node...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


matlab gets different answers for the same code
for loop=1:10 i12=randperm(n,2); i1=i12(1); i2=i12(2); % i1=2;i2=6; Floyd(i1,i2) Dijkstra(i1,i2) ...

mehr als 6 Jahre vor | 1 Antwort | 0

1

Antwort