sphinx-contrib / matlabdomain

A Sphinx extension for documenting Matlab code
http://sphinxcontrib-matlabdomain.readthedocs.io/
Other
70 stars 45 forks source link

Matlab function without input #43

Closed joeced closed 6 years ago

joeced commented 9 years ago

Originally reported by: Sandor Toth (Bitbucket: tothsa, GitHub: Unknown)


In Matlab function without input can have a simple header such as

#!Matlab

function pi = pival
% calculates the value of pi

pi = 3.1415;

In Matlab no brackets after the name of the function are necessary, however the missing brackets crashing sphinx. I know there is an easy fix, just adding the empty brackets after the name of the function. But it took me a long time to debug my Matlab documentation.


joeced commented 6 years ago

Original comment by Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown):


fixes #38 no paretheses

joeced commented 9 years ago

Original comment by Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown):


Issue #26 was marked as a duplicate of this issue.

joeced commented 9 years ago

Original comment by Mark Mikofski (Bitbucket: bwanamarko, GitHub: Unknown):


fixes #38 no paretheses