How to use correctly fsolve
    2 views (last 30 days)
  
       Show older comments
    
Hi everyone, i don't be able to find the way to write a nonlinear system. Can you help me? The system is substantially in this form:
1) (x(i+1)-x(i))*(y(i+1)-y(i))+x(i-1)-y(i-1);
2) (x(i+1)-2x(i))-y(i)
0 Comments
Answers (1)
  Walter Roberson
      
      
 on 17 Oct 2016
        Vectorize
diff(x(3:end)) .* diff(y(2:end-1)) + x(1:end-1) - y(1:end-1)
x(3:end) - 2 * x(2:end-1) - y(2:end-1)
0 Comments
See Also
Categories
				Find more on Systems of Nonlinear Equations in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
