Warning: include(): open_basedir restriction in effect. File(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) is not within the allowed path(s): (/home/h321874/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: Operation not permitted in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(): open_basedir restriction in effect. File(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php) is not within the allowed path(s): (/home/h321874/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: Operation not permitted in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include(): Failed opening '/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 95

Warning: include_once(): open_basedir restriction in effect. File(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/ossdl-cdn.php) is not within the allowed path(s): (/home/h321874/:/tmp:/var/tmp:/opt/alt/php81/usr/share/pear/:/dev/urandom:/usr/local/lib/php/:/usr/local/php81/lib/php/) in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 122

Warning: include_once(/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: Operation not permitted in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 122

Warning: include_once(): Failed opening '/home/matlabsite/public_html/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:/opt/alt/php72/usr/share/pear') in /home/h321874/domains/matlabsite.com/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
راهنمای استفاده از دو تابع true و false در متلب | مرجع متلب و هوش مصنوعی.

راهنمای استفاده از دو تابع true و false در متلب

دو تابع true و false و نماد، معرف مقادیر درست (true) و غلط (false) برای ارزش گذاری گزاره ها هستند و مقادیر پایه نوع داده منطقی (logical) می باشند. ضمن این که این توابع امکان ساخت ماتریس ها را نیز فراهم می آورند.

دو تابع true و false و نماد، معرف مقادیر درست (true) و غلط (false) برای ارزش گذاری گزاره ها هستند و مقادیر پایه نوع داده منطقی (logical) می باشند. ضمن این که این توابع امکان ساخت ماتریس ها را نیز فراهم می آورند.

برای مشاهده نحوه استفاده، لطفا به ادامه مطلب مراجعه نمایید.

 

دو تابع true و false و نماد، معرف مقادیر درست (true) و غلط (false) برای ارزش گذاری گزاره ها هستند و مقادیر پایه نوع داده منطقی (logical) می باشند. ضمن این که این توابع امکان ساخت ماتریس ها را نیز فراهم می آورند.

دو تابع true و false و نماد، معرف مقادیر درست (true) و غلط (false) برای ارزش گذاری گزاره ها هستند و مقادیر پایه نوع داده منطقی (logical) می باشند. ضمن این که این توابع امکان ساخت ماتریس ها را نیز فراهم می آورند.

 

نحوه استفاده: 

چند نمونه از کاربرد و شیوه فراخوانی این توابع در ادامه آمده استک

مقدار اسکالر برابر با درست (یک یا true)

A = true;

 ماتریس ۳ در ۳ که همه اعضایش false هستند  

B = false(3);

ماتریس ۴ در ۵ که همه اعضایش true هستند 

C = true(4,5)

ماتریس ۴ در ۵ که اعضایش false هستند 

D = false([4 5]);

ماتریس ۳ در ۴ در ۵ با المان های true 

E = true([3 4 5]);

 

مطالب پیشنهادی‎

پاسخی بگذارید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *