attempt to execute script varargin as a function
3 views (last 30 days)
Show older comments
Hi, I have a problem, I have a function [region_parts, orig_sp, varargout] = spagglom (I_rgb, opts, varargin) and run in this way [A, B, C] = spagglom (1449, 'opts', varargin) , but it is saying the following error: Attempt to execute SCRIPT varargin as a function: C: \ Program Files \ MATLAB \ R2011b \ toolbox \ matlab \ lang \ varargin.m how can I fix it? Also can you tell me how to add VOC2012 at matlab? thank you
I apologize for the errors
0 Comments
Answers (2)
Andy L
on 11 Aug 2014
Edited: Andy L
on 11 Aug 2014
Try
[A, B, C] = spagglom (1449, 'opts', IN)
Where IN is an array of your variable number or arguments. Similar to what you have done with C for your varargout statement.
varargin is a function, which should be replaced by a variable when you call your function.
See Also
Categories
Find more on Migrate GUIDE Apps 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!