# Solving non-linear (and linear) simultaneous equations with 'solve' (Scripts) 2

Average Rating
User Rating:
Visitors Rating:
My rating:

• Last update: 5 years ago
• Operating system: Linux, Mac OS X, Win All, BSD, Solaris
• Publisher: Bruce (14 other programs)
See full specifications

## Solving non-linear (and linear) simultaneous equations with 'solve' (Scripts) Publisher's description

### symsolvesimulv2.m can be easily adapted to solve more equations but as it stands it will solve 2 unknowns in 2 non-linear equations (can be linear too or a mixture)

symsolvesimulv2.m can be easily adapted to solve more equations but as it stands it will solve 2 unknowns in 2 non-linear equations (can be linear too or a mixture).

Big change: It now has data input integrity checking.

At the MATLAB command-line prompt you run the 'symsolvesimulv2' m-file function with the correct vector arguments i.e. exponents, coefficients and constants in the equations in the appropriate order.

>> help symsolvesimulv2
solves a system (a pair) of non-linear or linear equations or a mixture,
returning a n x 2 column solution vector for x and y. The first parameter
is a row vector (1 x 4) of exponents used in both equations. An exponent
of one for both terms indicates a linear equation. The second parameter
(1 x 6) is also a row vector of all the coefficients and the constants
used in both equations. The order of both vector's elements is critical.
Note that there may be more than 1 solution for x and y (sometimes
complex)
and that they are presented in a symbolic format at times rather than a
pure numeric format.

USAGE: symsolvesimulv2([ex1 ex2 ex3 ex4],[a b a1 b1 c1 c2])
a*x^ex1 + b*y^ex2 = c1 (1)
a1*x^ex3 + b1*y^ex4 = c2 (2)
i.e.
>> z=symsolvesimulv2([1 1 2 2],[2 3 4 5 8 24]);

2 x + 3 y = 8

2 2
4 x + 5 y = 24

>> z

z =

[ 1, 2]
[ 13/7, 10/7]

These are the solutions for the 2 equations i.e. x = 1, y=2,
x=13/7, y = 10/7.
----------------------------------------------------------------
The code I wrote for 'solvesimulv2' is attached. Save it to your working folder and run as above.

#### System Requirements:

MATLAB 7.9 (2009b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

#### Solving non-linear (and linear) simultaneous equations with 'solve' (Scripts) Tags:

Click on a tag to find related softwares

## Most Popular

ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
Simulink Communication Labs allows you to learn communication systems in greater depth.
M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.