Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

How can access value of a variable in 1 M-file into other M-file ?

Asked by Dipten on 3 Apr 2014
Latest activity Answered by A Jenkins on 3 Apr 2014
function [template_detection, template_detection_display, ...
    template_recognition, template_recognition_display, ...
    template_ids, template_names] ...
    = vipwarningsigns_templates()
    template_recognition(:, :,1) = feature;
end

now here is 1 M-file now i want to use template_recognition(:, :,1) in other M-file. so exactly how can i do this plz tell me ????

0 Comments

Dipten

Tags

Products

No products are associated with this question.

1 Answer

Answer by A Jenkins on 3 Apr 2014
function other_function(template_recognition)
      feature=template_recognition(:,:,1);
end

0 Comments

A Jenkins

Contact us