Data structures, MATLAB in Engineering

Data structures:

The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some way be logically associated. There are several different types of data structures. We have working with one type, arrays example, vectors & the matrices. The array is a data structure in which all the values are logically associated in that they are of similar type, and present in some sense the similar thing. Faraway it is true for the vectors and matrices which we used.

The cell array is a type of data structure which stores values of various types. The Cell arrays can be vectors or matrices; the various values are stored in the elements of the array. The one very general use of a cell array is to store strings of various lengths.

The Structures are data structures which group together values that are logically related, but are not similar thing and not necessarily of the same type. The various values are stored in separate fields of the structure.

The one use of structures is to set up a database of information. For illustration, for a class a professor may want to store information for every student in the class: the student's name, ID number, grades on all the assignments & quizzes, and so forth. In most programming languages and database programs, the terminology is that in a database file, there would be only one record of information for each and every student; each separate piece of information (that is, name, quiz 1 score, etc.) would be called a field of the record. In MATLAB software, such records are termed as structs.

 

Posted Date: 10/20/2012 5:44:20 AM | Location : United States







Related Discussions:- Data structures, Assignment Help, Ask Question on Data structures, Get Answer, Expert's Help, Data structures Discussions

Write discussion on Data structures
Your posts are moderated
Related Questions
Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve

Function issorted - set operations: The function issorted will return 1 for logical true when the argument is sorted in ascending order (minimum to maximum), or 0 for false wh

Passing arguments to functions: In all these functions examples faraway, at least one of the arguments was passed in the function call to be the value(s) of the equivalent inp

FOR Loop: The for loop, or the for statement, is used whenever it is essential to repeat statement(s) in the script or function, and whenever it is known ahead of time how man

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

Appending variables to the Mat-File: Appending to the file adds to what has been saved in a file, and is accomplished by using the -append option. For illustration, supposing

Inverse of square matrix: The inverse is, hence the result of multiplying the scalar 1/D by each and every element in the preceding matrix. Note that this is not the matrix A,

Graphics Properties: The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a

Set Operations: The MATLAB has numerous built-in functions which perform set operations on vectors. These involve intersect, union, setdiff, unique, and setxor. All these func