필터 지우기
필터 지우기

How do I send vectors through my functions to find an Adiabatic Flame Temperature?

조회 수: 3 (최근 30일)
I am currently operating the "main.m" file to solve for the adiabatic flame temperature for a combustion process. The loop operates fine when I manually input a value for "phi" "X_O2" and "T_ref", but ultimately I would like to run the whole program for a range of "phi", "X_O2", and "T_ref".
For example:
Instead of inputing phi = 1
I would like to run the function for a range of phi=.25:.01:2
Unfortunately, I cannot figure out how to input these variables as vectors.
Are there any resources or examples that would help? Thank You

답변 (1개)

Abraham Boayue
Abraham Boayue 2018년 2월 22일
Hi Thomas, The reason why you cannot input a vector value for phi, xo2 and T_ref is that, the function called myHR was written to handle only scaler values of the above variables. You might want to look into that first. I think it is still possible to work around that. Try to make your main function to get vector inputs of the variables and pass the values one at a time to feed your myHR function. Let me know if you encountered issues doing that.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by