23a: User Defined Functions in Matlab with Examples in Urdu | Why we need User Define Function

preview_player
Показать описание
User Defined Functions in Matlab with Examples in Urdu | Why we need User Define Function

We have discussed five more important things about user defined function.
1) Need of user defined function
2) How to write it in Matlab
3) Embedding in main script file
4) Benefits
5) H1 help line
In this video Part 1 , after introduction we have explained the basic reasons of why we need user defined function, with the examples of Mersenne prime number and Safe prime numbers in urdu/hindi. How this method reduce size and error chances in main script file. For debugging it helps us by splitting the Matlab code into sections. Most important result of discussion is if some section of codes is being used in different programs or multiple time in the same program, it is better to make it a User Defined Function and use it.

if you find this video useful, kindly
like and comment on this video and subscribe to our channel.
Рекомендации по теме
Комментарии
Автор

Hi all. We have came with new and improved format for our videos. Kindly give your precious feedback about it by liking or commenting on this video. Also if you have any question related to topic, you can ask here by commenting.

ihsanulghafoor
Автор

Taimur ul Hassan
Sir your teaching method is so awesome ♥️🖤
I understand each and every bit of lecture 😍🥰💯

aliusamabhutta
Автор

Sir book may h global variables ko jb script file may use kryn tow b phly global likhna prhta hae Ore function file may b.... Lkn agr 2nu may sy kisi ak jgha py b global likh dyn variables k sath phir b result same ata tha
Phir apny kha tha function name or function file ka name same hona chahyh.... Lkn agr hm diff rkhy Ore calling may function file ka name use kryn phir b run ho rha h....
E. G
Function file=sam
function[y] =sum(a, b)
Ab jb mae es ko program may use krun ge tow
function [y] =sam(a, b)

Tow run ho Jay ga

bushrarani
Автор

Sir es chp ke ex k Jo ques haen vo b quiz k leyh krny haen? Vo tow bri calculations vly haen start sy 2, 3 ke smjh ai h bs....

bushrarani
Автор

It is also possible to transfer string into a function file
Sir es ka kya mtlb ho skta h??? K hm input string may b dy skty haen??? Function k input variable ko?

bushrarani
Автор

Sir jin topics ko apny idr explain kya h hm b book sy vhi kryn gy na?? Koi Ore extra topic tow nhi krna?? Q k symbolic k chp may new things b haen integration find krna vgaira vgaira Jo apny kha tha k class may kryn gy.... Yh nhi krny na?

bushrarani
Автор

Sir asy b kbi hua h k na input arguments hon na output???
Ore agr hm ny vector ya matrix may output ya input lani ho.... Phir b same yhi method apply hon gy??

bushrarani
Автор

Sir agr hmry program k jin parts may repitation aa rhi h.... Us may indexing ke ho.... Tow hm unko kasy input arguments may likh skty haen??? Error aaa rha us sy....

bushrarani
Автор

Sir I wanna ask a question. How to make a function for two same outputs using two different formulas in same editor window or same function file.For example we want to make a function to solve system of equations using crammer rule and matrix inversion method as both have same outputs but we want to use both formulas to make function in single function file for same outputs for both.

ghaffarameer