Community Profile

photo

Victor Jimenez Carrillo


Last seen: 10 mois il y a Actif depuis 2021

Statistiques

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Content Feed

Afficher par

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

plus de 2 ans il y a | 2 réponses | 0

2

réponses

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

plus de 2 ans il y a | 2 réponses | 0

2

réponses

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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

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

plus de 2 ans il y a | 1 réponse | 0

0

réponse

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

plus de 2 ans il y a | 1 réponse | 0

0

réponse