{"id":17330,"date":"2025-05-15T10:07:21","date_gmt":"2025-05-15T14:07:21","guid":{"rendered":"https:\/\/blogs.mathworks.com\/deep-learning\/?p=17330"},"modified":"2025-05-15T10:07:21","modified_gmt":"2025-05-15T14:07:21","slug":"ai-with-matlab-five-new-things-to-check-out","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/deep-learning\/2025\/05\/15\/ai-with-matlab-five-new-things-to-check-out\/","title":{"rendered":"AI with MATLAB: Five New Things to Check Out"},"content":{"rendered":"<h6><\/h6>\r\nThe <a href=\"https:\/\/blogs.mathworks.com\/matlab\/2025\/05\/15\/matlab-r2025a-has-been-released-whats-new\/\">R2025a MATLAB release<\/a>\u00a0 brings new AI capabilities that make it easier to build, customize, and deploy AI models. No matter your level of AI expertise, whether you prefer hand coding or using low-code apps, or where you are focusing on the AI pipeline, you can find new tools and examples that enhance your AI workflows.\r\n<h6><\/h6>\r\nIn this blog post, I\u2019ll walk you through five things you can now do in AI with MATLAB. Comment below to share your favorite new features.\r\n<h6><\/h6>\r\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17336 \" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/whats_new.png\" alt=\"MATLAB with AI new features\" width=\"491\" height=\"228\" \/>\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>1. Generate C\/C++ Code from Machine Learning Apps<\/strong><\/p>\r\nYou can now take your machine learning models from interactive training to embedded deployment in just a few clicks. After training a supported model in the Classification Learner or Regression Learner app, simply go to the <strong>Export<\/strong> section, click <strong>Export Model<\/strong>, and select <strong>Export Model to Coder<\/strong> to generate C\/C++ code using MATLAB Coder. To see which models are supported and explore step-by-step instructions, check out the documentation for <a href=\"https:\/\/www.mathworks.com\/help\/stats\/export-classification-model-to-coder.html\">classification models<\/a> and <a href=\"https:\/\/www.mathworks.com\/help\/stats\/export-regression-model-to-coder.html\">regression models<\/a>. To learn more about deployment of AI algorithms to embedded systems, see <a href=\"https:\/\/www.mathworks.com\/solutions\/deep-learning\/embedded-ai.html\">MATLAB and Simulink for Embedded AI<\/a>.\r\n<h6><\/h6>\r\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17339 size-full\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/ClassificationLearner.gif\" alt=\"Generating code from Classification Learner app\" width=\"1348\" height=\"928\" \/>\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>2. Use Deep Network Designer to Analyze Network Compression<\/strong><\/p>\r\nWith the <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ref\/deepnetworkdesigner-app.html\">Deep Network Designer<\/a> app, you can now generate a compression report that includes information about quantization, showing potential memory savings and layer-level quantization support. This helps you identify opportunities to reduce the model size and prepare networks for efficient deployment on resource-constrained hardware. To learn more, check out the example <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ug\/analyze-and-compress-1d-convolutional-neural-network.html\">Analyze and Compress 1-D Convolutional Neural Network<\/a>.\r\n<h6><\/h6>\r\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17342 size-full\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/ProfileDeepLearningNetworkForDeploymentExample_04.png\" alt=\"Analyzing Deep Network Compression with Deep Network Designer app\" width=\"1335\" height=\"818\" \/>\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>3. Label Ground Truth with SAM in Video Labeler App<\/strong><\/p>\r\nYou can now interactively label ground truth in the <a href=\"https:\/\/www.mathworks.com\/help\/vision\/ref\/videolabeler-app.html\">Video Labeler<\/a> app using the Segment Anything Model (SAM). With the new SAM-based tool, you can create pixel labels for semantic segmentation, perform automatic full image segmentation, and create labels for instance segmentation and object detection by simply clicking or drawing a region of interest (ROI). To learn more about ground-truth labeling with SAM, see the documentation topic <a href=\"https:\/\/www.mathworks.com\/help\/vision\/ug\/automatically-segment-and-label-ground-truth-semantic-segmentation.html\">Automatically Label Ground Truth Using Segment Anything Model. <\/a>\r\n<h6><\/h6>\r\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17345 size-full\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/full-sam-seg-video.gif\" alt=\"SAM-based tool in Video Labeler app\" width=\"1896\" height=\"1076\" \/>\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>4. Create K-Means Model for Incremental Learning<\/strong><\/p>\r\nWith the new <a href=\"https:\/\/www.mathworks.com\/help\/stats\/incrementalkmeans.html\">incrementalKMeans<\/a> model object, you can now combine <a href=\"https:\/\/blogs.mathworks.com\/deep-learning\/2024\/03\/04\/incremental-learning-adaptive-and-real-time-machine-learning\/\">incremental learning<\/a> with k-means clustering \u2014 perfect for streaming data or applications where memory and compute are limited.\u00a0Unlike traditional k-means, which requires you to provide all the data before computing the cluster assignments,\u00a0incremental k-means\u00a0allows you to update the clustering model incrementally by supplying chunks of data. You can also now perform <a href=\"https:\/\/www.mathworks.com\/help\/stats\/incrementaldynamickmeans.html\">incremental dynamic k-means<\/a> for a dynamically changing number of clusters.\r\n<h6><\/h6>\r\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-17348 size-full\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/CreateIncrementalLearnerWithFixedNumberOfClustersExample_02.gif\" alt=\"Incremental k-means clustering\" width=\"879\" height=\"432\" \/>\r\n<h6><\/h6>\r\n&nbsp;\r\n<h6><\/h6>\r\n<p style=\"font-size: 18px;\"><strong>5. Learn All About Deep Learning Metrics<\/strong><\/p>\r\nThere is a new documentation topic on <a href=\"https:\/\/www.mathworks.com\/help\/deeplearning\/ug\/deep-learning-metrics.html\">Deep Learning Metrics<\/a>. Deep learning metrics play a critical role in developing, evaluating, and refining neural networks. While loss functions guide the training process, metrics such as accuracy, precision, recall, and area under curve (AUC) provide insights into the model\u2019s performance, especially on unseen data. They help you assess whether your model is learning the right patterns, identify imbalances or overfitting, and compare architectures or training strategies.\r\n<h6><\/h6>","protected":false},"excerpt":{"rendered":"<div class=\"overview-image\"><img decoding=\"async\"  class=\"img-responsive\" src=\"https:\/\/blogs.mathworks.com\/deep-learning\/files\/2025\/05\/whats_new.png\" onError=\"this.style.display ='none';\" \/><\/div><p>\r\nThe R2025a MATLAB release\u00a0 brings new AI capabilities that make it easier to build, customize, and deploy AI models. No matter your level of AI expertise, whether you prefer hand coding or using... <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/deep-learning\/2025\/05\/15\/ai-with-matlab-five-new-things-to-check-out\/\">read more >><\/a><\/p>","protected":false},"author":194,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,68,12,59],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/17330"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/users\/194"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/comments?post=17330"}],"version-history":[{"count":6,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/17330\/revisions"}],"predecessor-version":[{"id":17363,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/posts\/17330\/revisions\/17363"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/media?parent=17330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/categories?post=17330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/deep-learning\/wp-json\/wp\/v2\/tags?post=17330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}