1/7/2023 0 Comments Convert matlab to r code![]() Does this imply anything here? No there is nothing special about this gap, I have just added a gap to make the code look clean. Now I have again given a gap in the program on line 7. Now even if the user gives a input which is a number, the value is stored as a string. The 's' parameter after the string in the input function tells the computer that the user is going to give an input which is a string. We know that the input function by default assumes that the user is going to give it an input a number. ![]() Now in lines 5 and 6 we are asking the user to give the input of temperature and the units using the input function. This is the way that all the scripts in the Matlab are documented. Now we can understand from this that when we type help xxxxx, then the first few lines of comments above the gap will get executed. You will find that, first three lines of code(i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |