Function Reference: Volume 2 (F-O) - The MathWorks - #1451

/ 1568


catalogue search
P. 1451
P. 1452
P. 1453
P. 1454
P. 1455
P. 1456
P. 1457
P. 1458
P. 1459
P. 1460
P. 1461
P. 1462
P. 1463
P. 1464
P. 1465
P. 1466
P. 1467
P. 1468
P. 1469
P. 1470
P. 1471
P. 1472
P. 1473
P. 1474
P. 1475
P. 1476
P. 1477
P. 1478
P. 1479
P. 1480
P. 1481
P. 1482
P. 1483
P. 1484
P. 1485
P. 1486
P. 1487
P. 1488
P. 1489
P. 1490
P. 1491
P. 1492
P. 1493
P. 1494
P. 1495
P. 1496
P. 1497
P. 1498
P. 1499
P. 1500


See other catalogues for The MathWorks

Text version of the page
Untitled
odeset
OutputFcn — To specify an output function, set 'OutputFcn' to a function handle. For example,
options = odeset('OutputFcn',@myfun)
sets 'OutputFcn ' to @myfun, a handle to the function myfun.See "Function Handles" in the MATLAB Programming documentation for more information.
The output function must be of the form status = myfun(t,y,flag)
, in the MATLAB Mathematics documentation, explains how to provide additional parameters to myfun, ifnecessary.
The solver calls the specified output function with the following flags. Note that the syntax of the call differs with the flag. The function must respond appropriately:
Flag
Description
init
The solver calls myfun(tspan ,y0,'init') beforebeginning the integration to allow the output function to initialize. tspan and y0 are the input arguments to the ODE solver.
2-2395

pageCatalog pdf di En 2012-06-22-01