I have two simultaneous nonlinear equations like this
X^2-3cos(y)-A=0
2x+y^3+B=0
Where A and B are vectors, anyone have a m-file solving problem like this by Newton-Raphson method?
Hey there,
if don't want to self-implement a Newton scheme, there's a built-in rountine available: fsolve() that solves F(x) = 0. Assuming your two equations are scalar, use something like
F = @(x) [x(1)^2 - 3*cos(x(2)) - a; 2*x(1) + x(2)^3 + b];
x0 = [1;1];
xroot = fsolve(F, x0);
Verify the solution by typing F(xroot) (which should be close to the zero vector). This works analogously for vector-valued equations.
Best, FF
When describing diffraction profiles using a Lorentzian profile function correction of peak broadening is: B=B(measured)-B(instrumental) whereas using Gaussian profiles...
11 December 2016 7,465 6 View
what the parameters should i get from the LCR meter and what equation should to be used for impedance spectroscopy measurements a solar cell
04 May 2016 2,974 8 View
I have a CFG file and i want to convert it to cif or xyz file.
08 September 2014 9,926 1 View
i have a PoV-Ray files of my Sample Structure and i want to make a movie from these files.
08 September 2014 3,487 1 View
06 July 2014 502 5 View
How we can start a good data file which would control the simulation?
06 July 2014 2,451 1 View
I started working on using the envelope (Swanepoel 1983) method to obtain the optical constants, I was able to calculate the refractive index n and the thickness, but there are some problems such...
01 February 2014 1,777 12 View
What is the mean reason for the non-oscillating of structure factor around one and the reduced structure factor about zero at high k values?
07 August 2013 7,026 5 View
I have x ray data in text file contain two column the first is the diffraction angle(2 theta) and the second is the intensity and I don't know how to use this file as input file
06 July 2013 1,549 3 View
I need to write a XYZ or CHEM3D file for glassy GeSe4 and I don't know how to do this
06 July 2013 4,915 0 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View
I am required to learn about Flyback converters and I got stuck not knowing to full design of the power supply flyback converter Based USB Charger Model using Simulink, especially the design model...
25 February 2021 5,435 2 View
I do need the Matlab code of Fractal Discrete Cosine Transform (FDCT). Can anyone who has already implement this code, help me with the implementation of this transform?
24 February 2021 5,602 2 View
Hi Hope you are well. Can you please share your code for D2D implementation in Matlab. I want to implement D2D in Matlab based Vienna simulator and struggling to deploy D2D. Thanks
24 February 2021 9,378 3 View
Dear colleagues If anyone has a model of multi-effect distillation in EES or MATLAB software, please send it to me.
24 February 2021 7,282 1 View
Hi, I am a third year chemistry undergrad doing my group project in which I need to predict the HPLC retention time of 20 aromatic molecules. to do this we require the chemical properties of these...
24 February 2021 1,384 3 View
I use Matlab 2014b to capture some images with a PointGrey camera connected with USB3 port. I initialize the camera in a function which basically execute these followed lines : vid =...
22 February 2021 6,386 1 View
How to build fouling and erosion simulation model for Aero Engine compressor and turbine rotor in Simulink / Matlab?
22 February 2021 3,697 1 View