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

preview_player
Показать описание
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)
Рекомендации по теме
Комментарии
Автор

32:30 sir starting 8 ki smj ni ai 6 toh decimals Han Ur8.6f main f kon sa style bta Raha ya ni smj ai.

sairabano
Автор

38:29 sir decimal places 2 Chahiye or 9 8 constant ha etc 8.2, 8.9 ay ga mujy 8 ki ni smj aa ri ..
Ur dusri bat k jahan b % lagni value print krwany k liay 8.6 uder e sath ay ga.

sairabano
Автор

29:58 disp ko 11 places tak value di Ur JB format long Kia toh isnay Kasy agly digits khud likh diay han(0002) because hum khud value Dy rahy isko mujy is bat ki smj ni ai .

sairabano
Автор

Sir %#5. 2f ore %05.2f kya krty haen? Means output py en ka kya effect prhta hae?

bushrarani
Автор

Sir ak disadvantage b hae fprintf ka.... Yh error nhi data 😶mae ny itni dfa yh statment glt likhi hae... Kbi formating element may %2, 8f likha hae kbi just % lga dya hae... Lkn ak dfa b error nai aya blky next line py transfer ho jata hae cursor

bushrarani
Автор

Sir why using the floating point f with width and decimal values

bilalshah
Автор

Sir agr phly dy field width b na pta ho yh b na pta ho k ans int ay ga ya decimal may.... Phir kya kryn?

bushrarani
Автор

Sir hm at a time 2 inputs nhi ly skty?

bushrarani
visit shbcf.ru