Skip to content

Commit

Permalink
Dirty fix to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
H0R5E committed Sep 29, 2020
1 parent 1977646 commit 87c54b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/user/optimization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ structure includes the ``S.S`` and ``S.w`` fields.
note: 'Bretschneider, Hm0 = 4, Tp = 5'
date: '25-Mar-2020 13:08:28'
In the active code above from |optimization.m|_, there are eight spectra loaded into a |struct array|_.
In the active code above from |optimization.m|_, there are eight spectra loaded.
These can be plotted using standard MATLAB commands.

.. code:: matlab
figure
hold on
grid on
arrayfun(@(x) plot(x.w,x.S,'DisplayName',x.note), S)
arrayfun(@(x) plot(x.w,x.S,'DisplayName',x.note), SS)
legend()
xlim([0,3])
xlabel('Freq. [rad/s]')
Expand Down Expand Up @@ -415,8 +415,6 @@ shown, alongside the simulated meshes.
.. _WAFO: http://www.maths.lth.se/matstat/wafo/
.. _RM3: https://tethys-engineering.pnnl.gov/signature-projects/rm3-wave-point-absorber
.. _Nemoh: https://github.com/LHEEA/Nemoh
.. |struct array| replace:: struct array
.. _struct array: https://www.mathworks.com/help/matlab/matlab_prog/create-a-structure-array.html
.. |pseudo spectral method| replace:: pseudo spectral optimal control
.. _pseudo spectral method: https://en.wikipedia.org/wiki/Pseudospectral_optimal_control

Expand Down

0 comments on commit 87c54b4

Please sign in to comment.