Welcome to MATLAB Sphinx Documentation Test’s documentation!

Contents:

Tests:

Test Data

This is the test data module

test_data is a really cool module

My Handle Class

Does this work?

class test_data.MyHandleClass(x)

Bases: my.super.Class, handle

a handle class

Parameters:x – a variable
get_x()

how is this displayed?

static my_static_function(z)

A static function in MyHandleClass.

Parameters:z – input z
Returns:w
x = None

a property

My Abstract Class

Does this work?

class test_data.MyAbstractClass(y)

Bases: test_data.MyHandleClass, test_data.MyClass

an abstract class

Parameters:y (double) – a variable
version = u"'0.1.1-beta'"

version

y = None

y variable

my function

Do these work?

test_data.myfun(a1, a2)

a fun function

Parameters:
  • a1 – the first input
  • a2 – another input
Returns:

[o1, o2, o3] some outputs

My Class

How about this?

class test_data.MyClass(a)

Bases: handle

test class methods

Parameters:a – the input to MyClass
a = None

a property

mymethod(b)

a method in MyClass

Parameters:b – an input to mymethod()
my method

How about this too?

MyClass.mymethod(b)

a method in MyClass

Parameters:b – an input to mymethod()

Ellipsis Properties

Some edge cases that have ellipsis inside arrays.

class test_data.EllipsisProperties

Bases: handle

stuff

A = u'1 + 2 + 3 + \n4 + 5'

an expression with ellipsis

B = u"{'hello', 'bye'; \n'foo', 'bar';\n'this', 'that'\n'also' 'too'\n}"

a cell array with ellipsis and other array notation

C = u'EllipsisProperties.B(2:end, 1)'

using end inside array

+myPackage

This is the test package

packageFunc
test_data.+myPackage.packageFunc(varargin)

PACKAGEFUNC A function within a package

Parameters:varargin – Variable input arguments.
Returns:varargout

@myClassFolder

This is the test class folder

myClassFolder
class test_data.@myClassFolder.myClassFolder(p)

MYCLASSFOLDER

classMethod
test_data.@myClassFolder.classMethod(self, varargin)

CLASSMETHOD A function within a package

Parameters:
  • self – An instance of this class.
  • varargin – Variable input arguments.
Returns:

varargout

My Static Function
test_data.@myClassFolder.my_static_func(args)

method in @myClassFolder

Submodule

This is the test data module

Ellipsis after equals
test_data.test_submodule.f_ellipsis_after_equals(arg)

Tests a function with ellipsis in the output

No Arguments
test_data.test_submodule.f_no_args()

Tests a function with ellipsis in the output

No Outputs
test_data.test_submodule.f_no_outputs(arg)

Tests a function with ellipsis in the output

Output with Ellipsis
test_data.test_submodule.f_output_with_ellipsis(arg)

Tests a function with ellipsis in the output

Output with no commas
test_data.test_submodule.f_output_without_commas(arg)

Tests a function with ellipsis in the output

Super from different module
class test_data.test_submodule.super_from_diff_mod

Bases: test_data.MyHandleClass, test_data.MyAbstractClass

class which inherits bases from a different module

TestFibonacci
class test_data.test_submodule.TestFibonacci

Bases: matlab.unittest.TestCase

Test of MATLAB unittest method attributes

compareFirstThreeElementsToExpected(tc)

Test case that compares first three elements

Function with no parentheses
test_data.test_submodule.f_constant()

return a constant

Indices and tables