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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!