{"id":24869,"date":"2024-06-24T17:09:49","date_gmt":"2024-06-24T10:09:49","guid":{"rendered":"https:\/\/dte.telkomuniversity.ac.id\/?p=24869"},"modified":"2024-06-24T17:09:51","modified_gmt":"2024-06-24T10:09:51","slug":"matlab-for-loop","status":"publish","type":"post","link":"https:\/\/dte.telkomuniversity.ac.id\/en\/matlab-for-loop\/","title":{"rendered":"MATLAB for Loop"},"content":{"rendered":"\n<p>for loop digunakan untuk mengulangi pernyataan sejumlah waktu yang spesifik. Loop ini juga melacak setiap iterasi dengan variabel indeks yang bertambah atau berkurang.<\/p>\n\n\n\n<p><strong>Sintaks:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-134.png?lossy=1&strip=1&webp=1\"><img fetchpriority=\"high\" decoding=\"async\" width=\"309\" height=\"164\" src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-134.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24870\" srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-134.png?lossy=1&strip=1&webp=1 309w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-134-300x159.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-134-255x135.png?lossy=1&strip=1&webp=1 255w\" sizes=\"(max-width: 309px) 100vw, 309px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Contoh 1:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"972\" height=\"477\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24872 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135.png?lossy=1&strip=1&webp=1 972w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135-300x147.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135-768x377.png?lossy=1&strip=1&webp=1 768w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-135-255x125.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 972px) 100vw, 972px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 972px; --smush-placeholder-aspect-ratio: 972\/477;\" \/><\/a><\/figure>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"1014\" height=\"408\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24874 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136.png?lossy=1&strip=1&webp=1 1014w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136-300x121.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136-768x309.png?lossy=1&strip=1&webp=1 768w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-136-255x103.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 1014px) 100vw, 1014px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1014px; --smush-placeholder-aspect-ratio: 1014\/408;\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Contoh 2:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-137.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"420\" height=\"114\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-137.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24876 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-137.png?lossy=1&strip=1&webp=1 420w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-137-300x81.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-137-255x69.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 420px) 100vw, 420px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 420px; --smush-placeholder-aspect-ratio: 420\/114;\" \/><\/a><\/figure>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-138.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"769\" height=\"398\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-138.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24878 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-138.png?lossy=1&strip=1&webp=1 769w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-138-300x155.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-138-255x132.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 769px) 100vw, 769px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 769px; --smush-placeholder-aspect-ratio: 769\/398;\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Contoh 3:<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-139.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"294\" height=\"114\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-139.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24880 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-139.png?lossy=1&strip=1&webp=1 294w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-139-255x99.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 294px) 100vw, 294px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 294px; --smush-placeholder-aspect-ratio: 294\/114;\" \/><\/a><\/figure>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-140.png?lossy=1&strip=1&webp=1\"><img decoding=\"async\" width=\"467\" height=\"410\" data-src=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-140.png?lossy=1&strip=1&webp=1\" alt=\"\" class=\"wp-image-24882 lazyload\" data-srcset=\"https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-140.png?lossy=1&strip=1&webp=1 467w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-140-300x263.png?lossy=1&strip=1&webp=1 300w, https:\/\/b581640.smushcdn.com\/581640\/wp-content\/uploads\/2024\/06\/image-140-255x224.png?lossy=1&strip=1&webp=1 255w\" data-sizes=\"(max-width: 467px) 100vw, 467px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 467px; --smush-placeholder-aspect-ratio: 467\/410;\" \/><\/a><\/figure>\n\n\n\n<p>\/\/TC<\/p>\n\n\n\n<p>ref : <a href=\"https:\/\/dte.telkomuniversity.ac.id\/?p=24869\" data-type=\"link\" data-id=\"https:\/\/dte.telkomuniversity.ac.id\/?p=24869\">[1]<\/a><a href=\"https:\/\/www.javatpoint.com\/matlab-for-loop\" data-type=\"link\" data-id=\"https:\/\/www.javatpoint.com\/matlab-for-loop\">[2]<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>for loop digunakan untuk mengulangi pernyataan sejumlah waktu yang spesifik. Loop ini juga melacak setiap iterasi dengan variabel indeks yang bertambah atau berkurang. Sintaks: Contoh 1: Output: Contoh 2: Output: Contoh 3: Output: \/\/TC ref : [1][2]<\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":595,"footnotes":""},"categories":[595],"tags":[],"class_list":["post-24869","post","type-post","status-publish","format-standard","hentry","category-matlab"],"_links":{"self":[{"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts\/24869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/comments?post=24869"}],"version-history":[{"count":2,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts\/24869\/revisions"}],"predecessor-version":[{"id":24885,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/posts\/24869\/revisions\/24885"}],"wp:attachment":[{"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/media?parent=24869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/categories?post=24869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dte.telkomuniversity.ac.id\/en\/wp-json\/wp\/v2\/tags?post=24869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}