MATLAB Answers

Dipten

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

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


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today