in line 5 that defines y, the error says that there are not enough input arguments. I've even tried a know code that should have worked but gave me the same error any insight would be helpful on how to fix it
In his case i don't think his variables are matrices,they are scalars.But both('/' & './') should work,i guess.
@patrick.r
Your error - there are not enough input arguments.
I think you are not giving value of 'x' to your function. Try using the function,say as draft(100.25) in command window.It should work provided function is added to your path/in working directory.
in line 5 that defines y, the error says that there are not enough input arguments. I've even tried a know code that should have worked but gave me the same error any insight would be helpful on how to fix it
function [ y ] = draft(x)
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
C=25200;
B=-242.5;
R=3101.122;
y=(x^3)/C + (x^2)/B + x/R - 1;
x0=3101.122;
function z = example(x0)
z = fzero(draft,x0);
end
end
^ This will work along with my post 3.But i'm now trying on how to display the value of fzero function to command window as well.will reply back.