Issue with fzero command when finding when the 2 curves are first equal.
显示 更早的评论
The 2 pressure curves are:
t = linspace(0, 6, 121);
y1 = 3 * cos(2*t);
y2 = 2 * sin(t)
in the script here is my current code:
function F = h(z);
t = linspace(0, 6, 121);
F(1) = 3/cos(2*t)-2*sin(t);
end
My interval when calling the fzero command will be [0 6].
I know the code is extremely redundant but im getting the error of the indices on the left side are not compatibile with the size of the right side within the function. I was wondering is someone can help me resolve this issue.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!