how to use the output of a 1st part of a program to the 2nd part of the same program as a input?

2 次查看(过去 30 天)
suppose i need the output of the file "img-acqi.m" as a input of the "gabor_fn.m" in a single program. Here the code is spllitted in two parts but i want to merge them all together.
  1 个评论
Stephen23
Stephen23 2018-9-15
Simple:
  1. Convert those scripts to functions (scripts are used by beginners because they want to see all their data in the workspace viewer. Functions are used by experienced users because they want their code to work).
  2. Return the required values from the first function as output arguments.
  3. Input those values to the second function as input arguments.

请先登录,再进行评论。

采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-9-15
%First Part
function ......
end
%2nd Part
%Call the function
%Do finding
  4 个评论

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by