Студопедія
рос | укр

Головна сторінка Випадкова сторінка


КАТЕГОРІЇ:

АвтомобіліБіологіяБудівництвоВідпочинок і туризмГеографіяДім і садЕкологіяЕкономікаЕлектронікаІноземні мовиІнформатикаІншеІсторіяКультураЛітератураМатематикаМедицинаМеталлургіяМеханікаОсвітаОхорона праціПедагогікаПолітикаПравоПсихологіяРелігіяСоціологіяСпортФізикаФілософіяФінансиХімія






Доповідач 1


Дата добавления: 2015-09-15; просмотров: 480



Find(z0, z1, ...) - Returns values of z0, z1, . . . that satisfy the constraints in a solve block. z0, z1, . . . are real or complex scalars, vectors, arrays, or individual elements of vectors equal in number to the number of unknowns in the system. Returns a scalar for a single unknown; otherwise returns a vector of solutions.

 

Minerr(z0, z1, ...) - Returns values of z0, z1, . . . that come closest to satisfying the constraints in a solve block. z0, z1, . . . are real or complex scalars, vectors, arrays, or individual elements of vectors equal in number to the number of unknowns in the system. Returns a scalar for a single unknown; otherwise returns a vector of solutions.

 

Figure 10-6 shows a solve block with several kinds of constraints and ending with a call to the Find function. There are two unknowns. As a result, the Find function here takes two arguments, x and y, and returns a vector with two elements.

 

Figure 10-6: A solve block with both equalities and inequalities.

 

Another example:

 

SOLVING LINEAR SIMULTANEOUS EQUATIONS.

There are several ways to solve linear simultaneous equations. One method is to use a given/find solve block. This method is described later, since it can also be used to solve nonlinear equations.

The most common way of solving LINEAR simultaneous equations is to form the equations into matrices, and use matrix algebra. Consider the following four simultaneous equations:

We want to write them in matrix form. We will use matrix B to hold the equation coefficients, and column matrices (vectors) X and Y to hold the variables and equation results respectively.

We find the solution for X by multiplying the equation by the inverse of the B coefficient matrix:

X = B-1 * Y

 

Also Solving a Linear System of Equations can be performed by lsolve function.

 

lsolve(M, v) - Returns a solution vector x such that . v is a vector having the same number of rows as the matrix M.

An example:


<== предыдущая лекция | следующая лекция ==>
Доповідач 2 | Складові культури спілкування
1 | <== 2 ==> | 3 | 4 |
Studopedia.info - Студопедия - 2014-2024 год . (0.24 сек.) російська версія | українська версія

Генерация страницы за: 0.24 сек.
Поможем в написании
> Курсовые, контрольные, дипломные и другие работы со скидкой до 25%
3 569 лучших специалисов, готовы оказать помощь 24/7