Difference between revisions of "Ctrl trajan.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
Line 1: Line 1:
−
{{DISPLAYTITLE:ctrl_trajan.m}}
+
{{DISPLAYTITLE:ctrl_trajan.m}} __NOTOC__
 +
 
 
Diagnostic plotting function for optimal control toolbox. Plots trajectory and control pulse analysis.
 
Diagnostic plotting function for optimal control toolbox. Plots trajectory and control pulse analysis.
  
 
==Syntax==
 
==Syntax==
  
−
    ctrl_trajan(spin_system,waveform,trajectory,fidelities)
+
ctrl_trajan(spin_system,waveform,traj_data,fidelities)
 +
 
 +
==Arguments==
 +
 
 +
waveform  - waveform, as supplied to a user-end
 +
                function, such as grape_xy.m
  
−
==Description==
+
    traj_data  - a cell array of trajectory data struc-
−
This function is called internally by the optimal control module, you should not be calling it directly. All settings should be specified in the call to [[optimcon.m]] when the optimal control problem is set up.
+
                tures returned by GRAPE, one per en-
 +
                semble member
  
−
==Arguments==
+
    fidelities - fidelities array, as returned by
 +
                user-end functions, such as grape_xy
  
−
    waveform  - waveform, as supplied to a user-end
+
Note: this function is called internally by the optimal cont-
−
                  function, such as grape_xy.m
+
      rol module, you should not be calling it directly. All
−
+
      settings should be specified in the call to optimcon.m
−
    trajectory - spin system trajectory, a stack of
+
      when the optimal control problem is set up.
−
                  complex vectors
 
−
 
−
    fidelities - fidelities array, as returned by
 
−
                  user-end functions, such as grape_xy
 
  
−
==Returns==
+
david.goodwin@inano.au.dk
−
The function plots a graph similar to the one below.
+
ilya.kuprov@weizmann.ac.il
−
[[File:ctrl_trajan_figure.png]]
+
m.keitel@soton.ac.uk
  
 
==Examples==
 
==Examples==
 +
 
See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling ''Spinach'' optimal control functionality.
 
See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling ''Spinach'' optimal control functionality.
  
 
==See also==
 
==See also==
 +
 
[[grape_xy.m]], [[grape_phase.m]], [[optimcon.m]], [[trajan.m]], [[trajsimil.m]]
 
[[grape_xy.m]], [[grape_phase.m]], [[optimcon.m]], [[trajan.m]], [[trajsimil.m]]
  
  
 
''Version 2.0, authors: [[Ilya Kuprov]], [[David Goodwin]]''
 
''Version 2.0, authors: [[Ilya Kuprov]], [[David Goodwin]]''
 +
 +
==Description==
 +
 +
This function is called internally by the optimal control module, you should not be calling it directly. All settings should be specified in the call to [[optimcon.m]] when the optimal control problem is set up.
 +
 +
==Returns==
 +
 +
The function plots a graph similar to the one below.
 +
[[File:ctrl_trajan_figure.png]]

Revision as of 14:02, 5 April 2026


Diagnostic plotting function for optimal control toolbox. Plots trajectory and control pulse analysis.

Syntax

ctrl_trajan(spin_system,waveform,traj_data,fidelities)

Arguments

waveform - waveform, as supplied to a user-end

                function, such as grape_xy.m
   traj_data  - a cell array of trajectory data struc-
                tures returned by GRAPE, one per en-
                semble member
   fidelities - fidelities array, as returned by
                user-end functions, such as grape_xy
Note: this function is called internally by the optimal cont-
      rol module, you should not be calling it directly. All
      settings should be specified in the call to optimcon.m
      when the optimal control problem is set up.
david.goodwin@inano.au.dk
ilya.kuprov@weizmann.ac.il
m.keitel@soton.ac.uk

Examples

See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling Spinach optimal control functionality.

See also

grape_xy.m, grape_phase.m, optimcon.m, trajan.m, trajsimil.m


Version 2.0, authors: Ilya Kuprov, David Goodwin

Description

This function is called internally by the optimal control module, you should not be calling it directly. All settings should be specified in the call to optimcon.m when the optimal control problem is set up.

Returns

The function plots a graph similar to the one below. Ctrl trajan figure.png