MATLAB POLYSPACE 7 Guía de instalación Pagina 449

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 618
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 448
Using Cells for Rapid Code Iterati on a nd P ub lishi ng Results
Modifying Values in a Cell
You can use cell features to modify numbers in a cell, which a ls o automatically
reevaluates the cell. This helps you experiment with and fine-tune your code.
Tomodifyanumberinacell,selectthenumber(orplacethecursornear
it) and use the v alue modification tool in th e cell toolbar. Using this tool,
you can specify a number and p ress the appropriate math operator to add
(increment), subtract (decrement), multiply, or divide the number. The cell
then automatically reevaluates.
Yo u can use the numeric keypad operator keys (-, +, /,and*) instead of the
operator buttons on the toolbar.
Note MATLAB does not automatically save changes you make to values
using the cell toolbar. To save changes, select File > Save.
Example Evaluate Cells
In this example, modify the values for x in sine_wave.m:
1 Run the first cell in sine_wav.m. Click somewhere in the first cell, that
is, b etw een lines 1 and 6. Select Cell > Evaluate Current Cell.The
following figure appears.
6-141
Vista de pagina 448
1 2 ... 444 445 446 447 448 449 450 451 452 453 454 ... 617 618

Comentarios a estos manuales

Sin comentarios