10: How to input data in Matlab | Formatting the output using disp + fprintf | MatLab for Beginners

Опубликовано: 19 Октябрь 2024
на канале: Matlab with Nashi (FormuAlgo)
1,091
19

How to input data in Matlab | Formatting the output using disp + fprintf | MatLab for Beginners

In this video we have discussed about different ways of chaining values of the dependent variable of a program and how program should give out put in various ways depending on our need.

The subtopics covered in this tutorial are following.
Changing variable values
00:40 Directly in Script file
05:16 Using command window
10:48 Input built in command
14:45 Benefits of using input command
16:42 Input a string (Characters)
formatting Out put
22:42 Using disp command
26:42 Demerits of disp command
30:13 Use of fprintf command
38:24 Displaying multiple variables in a single sentence.
41:02 Discussing %6.4f format from different aspects
46:28 Finding type of fprintf display formats using help
49:03 Special characters types and usage
53:40 Technique to find solution related to question for Matlab
54:33 Printing only string using fprintf
( Note : Kindly use default display format, unfortunately my format was format rats while discussing this section, that why we see the inverted commas around the answer. With default format you will see only string as answer not the inverted commas, in answer).
56:21 How to use ellipses in fprintf ( writing command in multiple lines)