Calling the results from two scripts in one third script
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, I have two scripts which both generate a result, one script is called 1.m and the second 2.m.
Each generates the result defined by "res" in each of the scripts.
I'd like to multiply the two "res" from 1.m and 2.m in a third script, 3.m. How can I do that?
Thanks
댓글 수: 1
채택된 답변
ES
2017년 7월 31일
script3.m
script1;%Running script1.m
a = res;%storing value of res in a
script2;%Running script2.m
b = res;%storing value of res in b
c=a*b;
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!