Community Profile

photo

Victor Jimenez Carrillo


Last seen: 4 días ago Active since 2021

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


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 ...

4 días ago | 2 answers | 0

2

answers

Question


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*(...

2 meses ago | 2 answers | 0

2

answers

Question


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 meses ago | 1 answer | 0

1

answer

Question


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 meses ago | 0 answers | 0

0

answers

Question


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 meses ago | 0 answers | 0

0

answers