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
Algorithm for expfn function: The algorithm for expfn function is as shown:  receives the value of x as the input argument.  Prints the value of exp(x).  assigns a

Structures: The Structures are data structures which group together values which are logically related in what are known as the fields of structure. The benefit of structures

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

Splits a string : The strtok function splits a string into pieces; it can be called in many ways. The function receives one string as an input argument. It appears for the fir

Print from the structure: To print from the structure, a disp function will show either the whole structure or a field. >> disp(package) item_no: 123 cost: 19.99

. Generate the following signal, x(n)=1+cos((25*pi*n)/100),0 Compute the DTFT of x[n] for w=0:0.01:2*pi Plot the Real part, imaginary part, the amplitude and phas

Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym

function imread: The function imread can read an image file, for illustration a JPEG (.jpg) file. The function reads color images into a 3-dimensional matrix. >> myimage1

Function iscellstr - string function: The function iscellstr will return the logical true when a cell array is a cell array of all the strings, or logical false if not. >>