What Is Stateflow?
Stateflow ® provides a graphical language that includes state transition diagrams, flow charts, state transition tables, and truth tables. Use Stateflow to describe how MATLAB ® algorithms and Simulink ® models react to input signals, events, and time-based conditions.
Design and develop supervisory control, task scheduling, fault management, communication protocols, user interfaces, and hybrid systems.
Model combinatorial and sequential decision logic that can be simulated as a block within a Simulink model or executed as an object in MATLAB. Use graphical animation for analyzing and debugging your logic while it is executing. Edit-time and run-time checks ensure design consistency and completeness before implementation.
MatLab
MatLab — высокоуровневый интерпретируемый язык программирования вместе с пакетом прикладных программ и интегрированной средой для разработки, выполнения инженерных и математических расчетов, работы с матричными базами данных, визуализации.
«IT-специалист с нуля» наш лучший курс для старта в IT
MatLab как язык программирования создал в 1970-х годах Клив Моулер, декан факультета компьютерных наук в Университете Нью-Мексико. Разработка упрощала использование библиотек Linpack и EISPACK студентам, не умеющим программировать на языке Fortran. MatLab быстро распространился в других образовательных учреждениях США. После выступления в Стэнфордском университете с Кливом Моулером связался инженер Джон Литтл, который предложил учредить коммерческую компанию The MathWorks для развития языка и среды программирования.
Профессия / 8 месяцев
IT-специалист с нуля
Попробуйте 9 профессий за 2 месяца и выберите подходящую вам

Для чего нужен язык MatLab
MatLab включает матричные структуры данных, набор математических функций, объектно-ориентированные возможности и интерфейсы к программам, написанным на других языках программирования и пр. Среди самых часто используемых возможностей MatLab:
- математические вычисления и информационный анализ;
- визуализация данных в виде двух- и трехмерных графиков, динамических анимаций;
- программирование и разработка алгоритмов.
В основном MatLab используется в научных исследованиях и инженерных разработках. Например, он также применяется:
- в разработке автоматизированных систем управления в различных механизмах, от обычных стиральных машин до аэрокосмических комплексов;
- сборе и анализе различной финансовой информации (котировок акций, цен, процентов, доходов и т.д.), а также инвестиционной деятельности для прогнозирования ситуаций на биржах, оптимизации инвестиционных портфелей;
- проектировании и анализе нейронных сетей как в рамках фундаментальных исследований, так и для решения прикладных задач: распознавания образов, управления нелинейными системами, прогнозирования и т.д.;
- обработке и улучшении качества сигналов при разработке аудио- и видеооборудования, телекоммуникационных систем, медицинской диагностике (УЗИ, МРТ, КТ) а также в астрофизике, астрономии, геологии, геофизике и т.д.;
- в биологии, биоинформатике, генетике, эпидемиологии для построения математических моделей различных биологических процессов и организмов.

Курс для новичков «IT-специалист
с нуля» – разберемся, какая профессия вам подходит, и поможем вам ее освоить
Преимущества и недостатки
Преимущества
Легкость освоения. В сравнении с C/C++, Fortran и т.д. язык достаточно легко изучать. У него простой и интуитивно понятный синтаксис, а также масса сопроводительной документации от разработчиков. Для его использования оператору не обязательно быть профессиональным программистом.
Широкий функционал. Язык MatLab включает продвинутую библиотеку для обработки и построения графиков, интегрированные функции линейной алгебры (LAPACK, BLAS), быстрого преобразования Фурье (FFTW), работы с полиномами, базовой статистики, решения дифференциальных уравнений и пр.
Обновляемость. Основные обновления языка и всей среды программирования происходят два раза в год.
Преобразования в «быстрый» код. Программы, написанные на MatLab, можно перевести на C/C++ с помощью MatLab Coder.
Интегрированность. Большой выбор прикладных приложений от официальных и сторонних разработчиков расширяет возможности языка.
Большое научное сообщество. Язык MatLab используется во многих университетах и исследовательских институтах.
Недостатки
Перегруженность. Большое число команд и операторов существенно замедляют работу программ, написанных на MatLab (в последних версиях этот недостаток практически устранен). Данные хранятся в оперативной памяти в виде векторов, поэтому на быстродействие также сильно влияет скорость векторизации — преобразования данных в векторы и обратно, операции с ними.
Узкая направленность. Использовать MatLab можно только в его замкнутой экосистеме, на других программных платформах этот язык неэффективен.
Высокая стоимость. Программная среда распространяется платно. Для покупки по минимальной стоимости нужно быть студентом образовательного учреждения. Также алгоритмы являются проприетарными, поэтому просмотр кода большей их части недоступен.
Сочетание узкой специализации и высокой стоимости — основная причина, по которой программный пакет MatLab не получил широкого распространения.
IT-специалист с нуля
Наш лучший курс для старта в IT. За 2 месяца вы пробуете себя в девяти разных профессиях: мобильной и веб-разработке, тестировании, аналитике и даже Data Science — выберите подходящую и сразу освойте ее.
What Is Artificial Intelligence (AI)?
Artificial intelligence, or AI, is a simulation of intelligent human behavior. It’s a computer or system designed to perceive its environment, understand its behaviors, and take action. Consider self-driving cars: AI-driven systems like these integrate AI algorithms, such as machine learning and deep learning, into complex environments that enable automation.
Why AI Matters
AI Workflow
AI with MATLAB
Why Does AI Matter?
AI is estimated to create $13 trillion in economic value worldwide by 2030, according to a McKinsey forecast.
That’s because AI is transforming engineering in nearly every industry and application area.
Beyond automated driving, AI is also used in models that predict machine failure, indicating when they will require maintenance; health and sensor analytics such as patient monitoring systems; and robotic systems that learn and improve directly from experience.
3:40 Video length is 3:40
Key Components to an AI Workflow
Success with AI requires more than training an AI model, especially in AI-driven systems that make decisions and take action. A solid AI workflow involves preparing the data, creating a model, designing the system on which the model will run, and deploying to hardware or enterprise systems.
The steps in the AI workflow.
Data Preparation
Taking raw data and making it useful for an accurate, efficient, and meaningful model is a critical step. In fact, it represents most of your AI effort.
Data preparation requires domain expertise, such as experience in speech and audio signals, navigation and sensor fusion, image and video processing, and radar and lidar. Engineers in these fields are best suited to determine what the critical features of the data are, which are unimportant, and what rare events to consider.
AI also involves prodigious amounts of data. Yet labeling data and images is tedious and time-consuming. Sometimes, you don’t have enough data, especially for safety-critical systems. Generating accurate synthetic data can improve your data sets. In both cases, automation is critical to meeting deadlines.
AI Modeling
Key factors for success in modeling AI systems are to:
- Start with a complete set of algorithms and prebuilt models for machine learning, deep learning, reinforcement learning, and other AI techniques
- Use apps for productive design and analysis
- Work in an open ecosystem where AI tools like MATLAB ® , PyTorch, and TensorFlow™ can be used together
- Manage compute complexity with GPU acceleration and scaling to parallel and cloud servers and on-premise data centers
System Design
AI models exist within a complete system. In automated driving systems, AI for perception must integrate with algorithms for localization and path planning and controls for braking, acceleration, and turning.

AI used in automated driving scenario.
Consider the AI in predictive maintenance for wind farms and autopilot controls for today’s aircraft.
Complex, AI-driven systems like these require integration and simulation.
Deployment
AI models need to be deployed to CPUs, GPUs, and/or FPGAs in your final product, whether part of an embedded or edge device, enterprise system, or cloud. AI models running on the embedded or edge device provide the quick results needed in the field, while AI models running in enterprise systems and the cloud provide results from data collected across many devices. Frequently, AI models are deployed to a combination of these systems.
The deployment process is accelerated when you generate code from your models and target your devices. Using code generation optimization techniques and hardware-optimized libraries, you can tune the code to fit the low power profile required by embedded and edge devices or the high-performance needs of enterprise systems and the cloud.
Developing AI-Driven Systems with MATLAB
There’s a well-documented shortage of skills in AI. However, engineers and scientists who use MATLAB or Simulink ® have the skills and tools necessary to create AI-driven systems in their areas of expertise.
Data Preprocessing with MATLAB
You will spend less time preprocessing data. From time-series sensor data to images to text, MATLAB apps and datatypes significantly reduce the time required to preprocess data. High-level functions make it easy to synchronize disparate time series, replace outliers with interpolated values, filter noisy signals, split raw text into words, and much more. You can quickly visualize your data to understand trends and identify data quality issues with plots and the Live Editor.
MATLAB apps automate ground-truth labeling of image, video, and audio data.
To test algorithms before data is available from sensors or other equipment, you can generate synthetic data from Simulink. This approach is commonly used in automated driving systems such as adaptive cruise control, lane keeping assist, and automatic emergency braking.

Using labeling apps for deep learning workflows like semantic segmentation.
Interoperating with deep learning frameworks.
AI Modeling with MATLAB
AI modeling techniques vary by application.
Machine Learning
MATLAB users have deployed thousands of applications for predictive maintenance, sensor analytics, finance, and communication electronics. Statistics and Machine Learning Toolbox™ makes the hard parts of machine learning easy with apps for training and comparing models, advanced signal processing and feature extraction, classification, regression, and clustering algorithms for supervised and unsupervised learning.
ASML, a semiconductor manufacturer, used machine learning techniques to create virtual metrology technology to improve the overlay alignment in the complex structures that make up a chip. “As a process engineer, I had no experience with neural networks or machine learning. I worked through the MATLAB examples to find the best machine learning functions for generating virtual metrology. I couldn’t have done this in C or Python—it would’ve taken too long to find, validate, and integrate the right packages,” explained engineer Emil Schmitt-Weaver.
MATLAB models also have faster execution than open source on most statistical and machine learning computations.
The Classification Learner app, which lets you try different classifiers and find the best fit for your data set.
Deep Learning
Engineers use MATLAB deep learning capabilities for automated driving, computer vision, speech and natural language processing, and other applications. Deep Learning Toolbox™ lets you create, interconnect, train, and evaluate the layers of a deep neural network. Examples and pretrained networks make it easy to use MATLAB for deep learning, even without knowledge of advanced computer vision algorithms or neural networks.
MATLAB enables engineers to work together across different deep learning frameworks. With support for ONNX, MATLAB allows importing and exporting of the latest models to and from other supported frameworks, including TensorFlow.
The Deep Network Designer app, which lets you build, visualize, and edit deep learning networks.
Reinforcement Learning
In control systems that benefit from learning based on cumulative reward, reinforcement learning is an ideal technique. Reinforcement Learning Toolbox™ lets you train policies using DQN, A2C, DDPG, and other reinforcement learning algorithms. You can use these policies to implement controllers and decision-making algorithms for complex systems such as robots and autonomous systems. You can implement the policies using deep neural networks, polynomials, or lookup tables.

Using Reinforcement Learning Toolbox to design and train policies.
Natural Language Processing
Natural language processing models are commonly used for sentiment analysis, predictive maintenance, and topic modeling. Text Analytics Toolbox™ provides algorithms and visualizations for preprocessing, analyzing, and modeling text data. It lets you extract and process raw text from sources such as equipment logs, news feeds, surveys, operator reports, and social media.
Using machine learning techniques such as LSA, LDA, and word embeddings, you can find clusters and create features from high-dimensional text datasets. Features created with Text Analytics Toolbox can be combined with features from other data sources to build machine learning models that take advantage of textual, numeric, and other types of data.
Identifying topics in storm report data.
System Design
Complex, AI-driven systems need to integrate with other algorithms. System design and simulation are important because the overall system impacts the effectiveness of AI models. Engineers use Simulink for rapid design iteration and closed-loop testing.
For example, in an automated driving system, you use AI and simulation for the overall system design. You use Simulink to model the dynamics of the vehicle, design the driving controller, and fuse various sensor signals. You use MATLAB to develop and train the AI model and incorporate the trained model into Simulink for system-level simulation. You might use software like the Unreal Engine to synthesize camera images to feed the AI model and for 3D visualization.
Voyage, which makes self-driving taxis for retirement communities, deployed a Level 3 autonomous vehicle in less than three months. The integrated model sped the process from idea to road testing. Simulink let them safely test in dangerous conditions.
Simulink also lets you generate failure data from known failure conditions. In a wind farm, you might add the synthetic failure data to the measured data from the wind turbines. You can refine your system model to get an accurate predictor of future equipment failures.
3:45 Video length is 3:45

Using synthetic failure data from the model along with measured data to create a strong predictor of future failures.
Deployment
AI models in MATLAB can be deployed on embedded devices or boards, edge devices in the field, enterprise systems, or the cloud.
For deep learning models, you can use GPU Coder™ to generate and deploy NVIDIA ® CUDA ® GPUs. Or generate C code with MATLAB Coder™ and Simulink Coder™ for deployment on Intel ® and Arm ® boards.. Vendor-optimized libraries create deployable models with high-performance inference speed.
With MATLAB Production Server™, you can securely deploy to and integrate with enterprise IT systems, data sources, and operational technologies.
Integrating directly with existing systems and data, including Tableau ® , TIBCO ® Spotfire ® , Power BI, and other modern analytics systems.
Документация
MATLAB ® Online™ обеспечивает доступ к последней версии MATLAB от стандартного использования веб-браузера MathWorks ® размещенные вычислительные ресурсы и устройство хранения данных.
С MATLAB Online вы можете:
- Доступ к последней версии MATLAB со всеми последними функциями, доступными для вас через вашу текущую лицензию.
- Используйте MATLAB в своем веб-браузере без любых загрузок, установки или обслуживания.
- Сохраните до 5 Гбайт файлов MATLAB в вашем MATLAB Drive™ .
- Сотрудничайте с другими пользователями MATLAB путем предоставления им только для представления или доступ мочь-редактирования к файлам MATLAB.
- Создайте ссылку на свою работу и совместно используйте ее глобально.
- Синхронизируйте свои файлы на рабочем столе с MATLAB Online и MATLAB Drive с помощью Коннектора MATLAB Drive .
Чтобы начать использовать MATLAB Online , перейдите к https://matlab.mathworks.com/.
Для получения дополнительной информации о MATLAB Online , включая поддерживаемые типы лицензий, технические требования, ограничения и системные требования, видят MATLAB Online Обзор.

Похожие темы
- Совместно используйте папки в MATLAB
- Используйте горячие клавиши, чтобы переместиться по MATLAB
- MATLAB Drive
Документация MATLAB
Поддержка
- MATLAB Answers
- Помощь в установке
- Отчеты об ошибках
- Требования к продукту
- Загрузка программного обеспечения
© 1994-2021 The MathWorks, Inc.
- Условия использования
- Патенты
- Торговые марки
- Список благодарностей
Для просмотра документации необходимо авторизоваться на сайте
Войти
Памятка переводчика
1. Если смысл перевода понятен, то лучше оставьте как есть и не придирайтесь к словам, синонимам и тому подобному. О вкусах не спорим.
2. Не дополняйте перевод комментариями “от себя”. В исправлении не должно появляться дополнительных смыслов и комментариев, отсутствующих в оригинале. Такие правки не получится интегрировать в алгоритме автоматического перевода.
3. Сохраняйте структуру оригинального текста — например, не разбивайте одно предложение на два.
4. Не имеет смысла однотипное исправление перевода какого-то термина во всех предложениях. Исправляйте только в одном месте. Когда Вашу правку одобрят, это исправление будет алгоритмически распространено и на другие части документации.
5. По иным вопросам, например если надо исправить заблокированное для перевода слово, обратитесь к редакторам через форму технической поддержки.
