How to call a function to another m file?

조회 수: 4 (최근 30일)
Vinay Soni
Vinay Soni 2019년 11월 7일
답변: Image Analyst 2019년 11월 7일
My goal is to create a script m-file to plot temperature vs resitivity as described by 2 equations on the same axis. I have been informed to code equations 1 and 2 in 2 seperate functions which I have done (resitiviity and resitivity2). I am trying to call them in another m file called tempvres. However when I execute the code I am gaining a blank graph which isn't what im trying to obtain.resitivity.png
Resitivity function ^
resitivity2.png
Resitivity2 function ^
tempvres.png
tempvres script ^
figure for tempvres.png
An example output when I type 100 in as the temp difference.

채택된 답변

Image Analyst
Image Analyst 2019년 11월 7일
temp and r2 are probably scalars not vectors.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Function Creation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by