Format command, MATLAB Programming

Format command:

The format command can be used to control the spacing between the MATLAB command or expression and the outcome; it can be either compact or loose.

>> format loose

>> 2^7

ans =

128

>> format compact

>> 2^7

ans =

128

Particularly long expressions can be continued on the next line by typing three (or more) periods that is the continuation operator, or the ellipsis. For illustration,

>> 3 + 55 - 62 + 4 - 5 .   .   .

+ 22 - 1

ans =

16

Posted Date: 10/18/2012 3:31:29 AM | Location : United States







Related Discussions:- Format command, Assignment Help, Ask Question on Format command, Get Answer, Expert's Help, Format command Discussions

Write discussion on Format command
Your posts are moderated
Related Questions
Calling an User-Defined Function from Script: Now, we will change our script which prompts the user for the radius and computes the area of a circle, to call our function cal

how to display any words to the edittor

Find the boundary between each two of the equations P1, P2, P3 by solving: P1 = P2  ,  P1 = P3  ,  P2 = P3 Plot the boundary lines on a single figure that also includes the

Write a MATLAB program that calculates the arithmetic mean, the geometric mean, and the root-mean-square average for a given set of values. Your program must use 3 functions t

Show (turn in) similar output images as in part 2 for each of your new images (there is only 1 connected component in this case). Write three functions which compute the moments, c

In MATLAB, create a correlation matrix for all of the variables in the data (it should be an 8x8 matrix). To do this you will have to convert the "southern"variable into a number.

how to code this function

Ask question #Mingdfgdfgdfgimum 100 words accepted#

First order differential equations: Euler's method Finally, we consider ?nding the numerical solution for a ?rst order differential equation given an initial value. We consider

Example of variable names: If nothing appears when, who or whose is entered, which means there aren't any variables! For illustration, in the starting of a MATLAB session, the