Algorithm for subfunction, MATLAB in Engineering

Algorithm for subfunction:

The algorithm for subfunction askforn is as shown:

  •  Prompt the user for the positive integer n.
  •  Loop to print an error message and reprompt awaiting the user enters a positive integer.
  •  Return the positive integer n.

 

Posted Date: 10/19/2012 8:33:59 AM | Location : United States







Related Discussions:- Algorithm for subfunction, Assignment Help, Ask Question on Algorithm for subfunction, Get Answer, Expert's Help, Algorithm for subfunction Discussions

Write discussion on Algorithm for subfunction
Your posts are moderated
Related Questions
Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes

Vectors of Structures: In numerous applications, involving database applications, information generally would be stored in the vector of structures, instead of in individual s

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix:

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Technique is to create one element - vector: Technique is to create one element with the values from one structure, and use repmat to replicate it to the preferred size. Then,

Related Structure Functions: There are many functions which can be used with structures in a MATLAB. The function isstruct will return 1 for logical true when the variable arg

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

Reduced Row Echelon Form: The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system: The Reduced Row Echelon Forms take this one step

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