pydra icon indicating copy to clipboard operation
pydra copied to clipboard

Implement a Matlab compose module (i.e. alongside python, shell and workflow)

Open tclose opened this issue 8 months ago • 3 comments

Like the pydra.compose.python module, I have in mind that you could do something like

from pydra.compose import matlab

SquareNumber = matlab.define(
"""
function y = squareNumber(x)
% squareNumber - Squares the input number
%
% Syntax:
%   y = squareNumber(x)
%
% Input:
%   x (double) - A numeric value
%
% Output:
%   y (double) - The square of the input x
%
% Example:
%   result = squareNumber(3);
%
% See also: sqrt

    y = x^2;
end
"""
)

tclose avatar Apr 28 '25 12:04 tclose