Optimizing for a function output with multiple variables having different ranges.
이전 댓글 표시
Hello! I have a function that takes multiple inputs of temperature, pressure and so on to calculate net profit of a steam power plant. I am trying to create a new function that lets me run my first function multiple times with different ranges of my inputs and store or present the results of each iteration.
For example:
function [Net_Profit] = SteamPlant(T1, T2, P1, P2);
% This function would take two temperatures and pressures and output a Net Profit value%
Since it relies on an external function to calculate variables, I can't do "T1 = 35:45:10;" and then run the function. I need to find a way to run my function multiple times with singular input values across a range for each input.
Let me know if you need any clarification or details. I really appreciate the help and or suggestions! (:
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Thermal Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!