Clear Filters
Clear Filters


This question is closed. Reopen it to edit or answer.

Matlab Code to C

1 view (last 30 days)
Ahmed on 18 Jun 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Dear memebrs
I have a question
what dose this Matlab code means in C ?
function [t1,t2, t0, n] = fcn(y, y1, y2)
Thanks in advance

Answers (2)

MechtEngineer on 18 Jun 2014
Is the MATLAB code from a Simulink project? If so, you can find more information about the Simulink fcn User-Defined block here:
  1 Comment
Ahmed on 18 Jun 2014
Well its actually a matlab code which I want to adopt into my c programm
But I dont understand some syntax

Niklas Nylén
Niklas Nylén on 18 Jun 2014
The documentation of how functions are declared in Matlab is available here:
In your case, fcn is the name of the function. y, y1 and y2 are the input variables. t1,t2, t0 and n are the output variables (return values).

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!