Victor Jimenez Carrillo
Followers: 0 Following: 0
Feeds
提问
Feedback Function Not enough input arguments error
So here is my code below when I run it it gives me a error which should not happen. Any suggestions as to what to do inorder to ...
3 years 前 | 2 个回答 | 0
2
个回答提问
How to limit my x=[]; to a range of values between 0<=x<=1.
V=1000; Q=50; Fa0=1; k=1; E=-1; x=[]; fval=[]; for a=0:0.05:1 f=@(x) [Fa0*x(1)-k*a*V*(Fa0*(1-x(1)))/(Q*(1+E*x(1))); Fa0*(...
3 years 前 | 2 个回答 | 0
2
个回答提问
How to plot a (which is changing from 0-1 in 0.01 increments) vs x(2) (using a for loop and fsolve to find the solution of a nonlinear equation containing x(s) sol based on a
V=1000; Q=50; Ca0=1; k=1; for a=0:1:0.1 f=@(x) [Q*Ca0-Q*x(1)-k*x(1)^2*(a*V); Q*x(1)-Q*x(2)-k*x(2)^2*(1-a)*V]; fsolve(f,[0.5,...
3 years 前 | 1 个回答 | 0
1
个回答提问
Plot how would I take my out put C(2) and plot it vs Al (Alpha) This newtons method works to get Ca2 and CA1, but I want to bang CA2 vs Alpha for alpha 0-1. Do I use a matrix?
function TEST11 clear n=2; Jac=zeros(n); fv=zeros(n,1); f=zeros(n,1); Cd=zeros(n,1); C=zeros(n,1); C=[0.5; 0.3;]; CA0=1; V=...
3 years 前 | 0 个回答 | 0
0
个回答提问
Jac might be unused, but I am using the Jac value.
function Test2 clear n=2; Jac=zeros(n); fv=zeros(n,1); f=zero(n,1); Cd=zeros(n,1); C=zeros(n,1); C=[0.3;0.5]...
3 years 前 | 0 个回答 | 0