Your Algebra Homework Can Now Be Easier Than Ever!

Structures

Structures, Strings, and Systems

Opening Discussion

■ What did we talk about last class?
■ Do you have any questions about the reading?
■ Do you have any questions about the
assignment?

Structures

■ You can use the dot notation to put fields into a
variable to make a structure. Unlike normal
imperative languages, the format of the structure
isn' t predefined .
■ Matlab deals with arrays of structures just like
numeric arrays .
■ The struct function can build arrays of structures
from existing cell arrays.
■ You can pull out all the values of certain field with
' dynamic addressing '.

Strings

Like most other languages, Matlab does give you
the ability to use strings, though that isn't a real
strength.
■ A Matlab string is simply a row array of characters.
■ A downside of this is that an array with multiple
strings must have all the strings be the same
length. The char function can help with that.
■ You can also convert from numbers to strings and
back with str2num and num2str.
■ Matlab also has fprintf and sprintf functions that
work much like the C functions.
■ Similarly, sscanf will pull numbers out of strings .
■ eval and evalc let you process a string like it were
a Matlab function.

Files

■ Save and load commands let you access native
files that store Matlab variables.
■ Doing help fileformats will also show you all the
other formats the Matlab supports normally.
■ You can do low level I/O with C-like functions.
fopen, fclose, fread, fwrite, fscanf, fprintf, etc.
■ In addition, Matlab will also let you play with
directories and even has built in support for ftp if
you want to pull things across a network in Matlab.
■ Let's populate an array with a bunch of values,
write it out in a text file, then read it back in.

Matrix Algebra

■ Now we get into the things that Matlab was really
developed for and where it really stands out.
■ 2-D arrays are basically matrices and can be used
for doing all types of math .
■ Before we get into this we should talk about
systems of linear equations and how they can be
solved.
■ Matlab actually has routines that will try to solve
systems of equations that aren't “well behaved”.
That is, it will approximate both over-determined
and under-determined systems.

Matrix Algebra

■ Now we get into the things that Matlab was really
developed for and where it really stands out.
■ 2-D arrays are basically matrices and can be used
for doing all types of math.
■ Before we get into this we should talk about
systems of linear equations and how they can be
solved.
■ A set of linear equations is typically expressed as
Ax=y, where A is an n by n matrix and x and y are
n by 1 matrices. You are given A and y and want
to solve for x .
■ If the equations are “well behaved” there is a
single solution x =A-1y. Use \ instead of inv().

Overdetermined and
Underdetermined

■ If A isn't square there isn't a single solution. When
A has more rows than columns there is no exact
solution (overdetermined). When A has more
columns than rows there are an infinite number of
solutions (underdetermined).
■ Matlab actually has routines that will try to solve
systems of equations that aren't “well behaved”.
That is, it will approximate both over-determined
and under-determined systems.
■ In the overdetermined case, A\y will give you the
least squares solution. This is can be viewed as
an optimal fit.

Sparse Matrices

■ Matlab also has hat ability to store sparse
matrices.
■ We aren't really going to take advantage of this in
this class, but if you have a large matrix has has
mostly zeros in it , this can be significant .

Closing Comments

■ Assignment #3 is due on Monday and quiz #2 is
on Wednesday.

Prev Next

Start solving your Algebra Problems in next 5 minutes!

Algebra Helper
Download (and optional CD)

Only $39.99

Click to Buy Now:


OR

2Checkout.com is an authorized reseller
of goods provided by Sofmath

Attention: We are currently running a special promotional offer for Algebra-Answer.com visitors -- if you order Algebra Helper by midnight of November 21st you will pay only $39.99 instead of our regular price of $74.99 -- this is $35 in savings ! In order to take advantage of this offer, you need to order by clicking on one of the buttons on the left, not through our regular order page.

If you order now you will also receive 30 minute live session from tutor.com for a 1$!

You Will Learn Algebra Better - Guaranteed!

Just take a look how incredibly simple Algebra Helper is:

Step 1 : Enter your homework problem in an easy WYSIWYG (What you see is what you get) algebra editor:

Step 2 : Let Algebra Helper solve it:

Step 3 : Ask for an explanation for the steps you don't understand:



Algebra Helper can solve problems in all the following areas:

  • simplification of algebraic expressions (operations with polynomials (simplifying, degree, synthetic division...), exponential expressions, fractions and roots (radicals), absolute values)
  • factoring and expanding expressions
  • finding LCM and GCF
  • (simplifying, rationalizing complex denominators...)
  • solving linear, quadratic and many other equations and inequalities (including basic logarithmic and exponential equations)
  • solving a system of two and three linear equations (including Cramer's rule)
  • graphing curves (lines, parabolas, hyperbolas, circles, ellipses, equation and inequality solutions)
  • graphing general functions
  • operations with functions (composition, inverse, range, domain...)
  • simplifying logarithms
  • basic geometry and trigonometry (similarity, calculating trig functions, right triangle...)
  • arithmetic and other pre-algebra topics (ratios, proportions, measurements...)

ORDER NOW!

Algebra Helper
Download (and optional CD)

Only $39.99

Click to Buy Now:


OR

2Checkout.com is an authorized reseller
of goods provided by Sofmath
Check out our demo!
 
"It really helped me with my homework.  I was stuck on some problems and your software walked me step by step through the process..."
C. Sievert, KY
 
 
Sofmath
19179 Blanco #105-234
San Antonio, TX 78258
Phone: (512) 788-5675
Fax: (512) 519-1805
 

Home   : :   Features   : :   Demo   : :   FAQ   : :   Order

Copyright © 2004-2024, Algebra-Answer.Com.  All rights reserved.