Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: While, to a certain degree, it is possible to spot the differences when saving models with the .mdl
format.
A block of code is set as follows:
int main() { int u1, u2, y1; printf(""Enter two numbers\n""); scanf(""%d%d"", &u1, &u2); y1 = mul(u1, u2); printf(""Here''s your result,the operation done is a shining ''x''!\n%d\n"", y1); return EXIT_SUCCESS; }
Any command-line input or output is written as follows:
new_string = 'hello world!'; new_number = 0.01;
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "From the MATLAB main window, click on the New button and select the Simulink Model option".