Can not coder conversion

1 view (last 30 days)
Guillermo Soriano
Guillermo Soriano on 12 May 2015
Answered: Arnab De on 14 May 2015
Hi. Does anyone can explain me what does it mean and what I must do to correct? My code start like this:
%#codegen
function varargout = Toyalisis(varargin)
%TOYALISIS M-file for Toyalisis.fig
% TOYALISIS, by itself, creates a new TOYALISIS or raises the existing
% singleton*. % % H = TOYALISIS returns the handle to a new TOYALISIS or the handle to % the existing singleton*. % % TOYALISIS('Property','Value',...) creates a new TOYALISIS using the % given property value pairs. Unrecognized properties are passed via % varargin to Toyalisis_OpeningFcn. This calling syntax produces a % warning when there is an existing singleton*.
Then, when I try to use the coder, I received following warning: >> coder -build Toyacoffee.prj ??? Top-level function cannot have varargout.
Error in ==> Toyalisis Line: 2 Column: 23 Code generation failed: Open error report.
I made before some encoding with same statements at the top... from a GUI code... and succesfully. I will appreciate very much for a support Willy

Answers (1)

Arnab De
Arnab De on 14 May 2015

Categories

Find more on MATLAB Coder in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!