Difference between revisions of "Polar2cartesian.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "Converts [RF_amplitude, RF_phase] representation of a pulse waveform and the derivatives of any function with respect to those amplitudes and pha- ses into the [RF_x, RF_y] re...")
 
(Update function See also links and function index membership)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
Converts [RF_amplitude, RF_phase] representation of a pulse waveform and
+
{{DISPLAYTITLE:polar2cartesian.m}} __NOTOC__
−
the derivatives of any function with respect to those amplitudes and pha-
+
Converts [RF_amplitude, RF_phase] representation of a pulse waveform and the derivatives of any function with respect to those amplitudes and phases into the [RF_x, RF_y] representation and the derivatives of the function with respect to those X and Y RF values.
−
ses into the [RF_x, RF_y] representation and the derivatives of the func-
 
−
tion with respect to those X and Y RF values. Syntax:
 
  
−
        [x,y,df_dx,df_dy]=polar2cartesian(A,phi,df_dA,df_dphi)
+
==Syntax==
  
−
Parameters:
+
    [x,y,Dx,Dy,Dxx,Dxy,Dyx,Dyy]=polar2cartesian(r,p,Dr,Dp,Drr,Drp,Dpr,Dpp)
  
−
    A      - vector of waveform amplitudes
+
==Parameters==
  
−
     phi     - vector of waveform phases
+
     r    - vector of waveform amplitudes
 +
 +
    p    - vector of waveform phases
 +
 +
    Dr  - optional vector of derivatives of some scalar function
 +
          with respect to the waveform amplitudes.
 +
 +
     Dp  - optional vector of derivatives of some scalar function
 +
          with respect to the waveform phases.
 +
 +
    Drr  - matrix of second derivatives of the function with respect
 +
          to the waveform amplitudes.
 +
 +
    Drp  - matrix of second derivatives of the function with respect
 +
          to the waveform amplitudes and phases.
 +
 +
    Dpr  - matrix of second derivatives of the function with respect
 +
          to the waveform phases and amplitudes.
 +
 +
    Dpp  - matrix of second derivatives of the function with respect
 +
          to the waveform phases.
  
−
    df_dA  - optional vector of derivatives of some scalar function 
+
==Outputs==
−
              with respect to the waveform amplitudes.
 
  
−
     df_dphi - optional vector of derivatives of some scalar function
+
     x    - vector of waveform amplitudes along X
−
              with respect to the waveform phases.
+
 +
    y    - vector of waveform amplitudes along Y
 +
 +
    Dx  - vector of derivatives of the function with respect to
 +
          the waveform amplitudes along X
 +
 +
    Dy  - vector of derivatives of the function with respect to
 +
          the waveform amplitudes along Y
 +
 +
    Dxx  - optional matrix of second derivatives of a scalar function
 +
          with respect to the waveform amplitudes along X
 +
 +
    Dxy  - optional matrix of second derivatives of a scalar function
 +
          with respect to the waveform amplitudes along X and Y
 +
 +
    Dyx  - optional matrix of second derivatives of a scalar function
 +
          with respect to the waveform amplitudes along Y and X
 +
 +
    Dyy  - optional matrix of second derivatives of a scalar function
 +
          with respect to the waveform amplitudes along Y
  
−
    d2f_dA2 - matrix of second derivatives of the function with respect
+
==See also==
−
              to the waveform amplitudes.
+
[[cartesian2polar.m]], [[shaped_pulse_xy.m]], [[shaped_pulse_af.m]], [[bruker_write.m]], [[chirp_pulse.m]], [[grad_pulse.m]], [[grad_sandw.m]], [[pmlg5.m]], [[pulse_shape.m]], [[read_wave.m]], [[restrans.m]], [[rseq_compiler.m]], [[rsequence.m]], [[sawtooth.m]], [[sech_pulse.m]], [[spinal.m]], [[triwave.m]], [[vg_pulse.m]], [[wave_basis.m]], [[Kernel_functions]]
  
−
  d2f_dAdphi- matrix of second derivatives of the function with respect
+
''Version 2.4, authors: [[David Goodwin]], [[Ilya Kuprov]]''
−
              to the waveform amplitudes and phases.
 
−
 
 
−
  d2f_dphi2- matrix of second derivatives of the function with respect
 
−
              to the waveform phases.
 
−
 
 
−
Outputs:
 
−
 
 
−
    x      - vector of waveform amplitudes along X
 
−
 
 
−
    y      - vector of waveform amplitudes along Y
 
−
 
 
−
    df_dx  - vector of derivatives of the function with respect to
 
−
              the waveform amplitudes along X
 
−
 
 
−
    df_dy  - vector of derivatives of the function with respect to
 
−
              the waveform amplitudes along Y
 
−
 
 
−
    d2f_dx2 - optional matrix of second derivatives of a scalar function
 
−
              with respect to the waveform amplitudes along X
 
−
 
 
−
    d2f_dxdy- optional matrix of second derivatives of a scalar function
 
−
              with respect to the waveform amplitudes along X and Y
 
−
 
 
−
    d2f_dy2 - optional matrix of second derivatives of a scalar function
 
−
              with respect to the waveform amplitudes along Y
 

Latest revision as of 19:39, 6 June 2026

Converts [RF_amplitude, RF_phase] representation of a pulse waveform and the derivatives of any function with respect to those amplitudes and phases into the [RF_x, RF_y] representation and the derivatives of the function with respect to those X and Y RF values.

Syntax

    [x,y,Dx,Dy,Dxx,Dxy,Dyx,Dyy]=polar2cartesian(r,p,Dr,Dp,Drr,Drp,Dpr,Dpp)

Parameters

   r    - vector of waveform amplitudes

   p    - vector of waveform phases

   Dr   - optional vector of derivatives of some scalar function
          with respect to the waveform amplitudes.

   Dp   - optional vector of derivatives of some scalar function
          with respect to the waveform phases.

   Drr  - matrix of second derivatives of the function with respect
          to the waveform amplitudes.

   Drp  - matrix of second derivatives of the function with respect
          to the waveform amplitudes and phases.

   Dpr  - matrix of second derivatives of the function with respect
          to the waveform phases and amplitudes.

   Dpp  - matrix of second derivatives of the function with respect
          to the waveform phases.

Outputs

   x    - vector of waveform amplitudes along X

   y    - vector of waveform amplitudes along Y

   Dx   - vector of derivatives of the function with respect to
          the waveform amplitudes along X

   Dy   - vector of derivatives of the function with respect to
          the waveform amplitudes along Y

   Dxx  - optional matrix of second derivatives of a scalar function
          with respect to the waveform amplitudes along X

   Dxy  - optional matrix of second derivatives of a scalar function
          with respect to the waveform amplitudes along X and Y

   Dyx  - optional matrix of second derivatives of a scalar function
          with respect to the waveform amplitudes along Y and X

   Dyy  - optional matrix of second derivatives of a scalar function
          with respect to the waveform amplitudes along Y

See also

cartesian2polar.m, shaped_pulse_xy.m, shaped_pulse_af.m, bruker_write.m, chirp_pulse.m, grad_pulse.m, grad_sandw.m, pmlg5.m, pulse_shape.m, read_wave.m, restrans.m, rseq_compiler.m, rsequence.m, sawtooth.m, sech_pulse.m, spinal.m, triwave.m, vg_pulse.m, wave_basis.m, Kernel_functions

Version 2.4, authors: David Goodwin, Ilya Kuprov