Industry
MATLAB Code
MATLAB
MATLAB Toolboxes
100

NASA relies heavily on MathWorks tools. In the landings of both the Curiosity and Perseverance rovers, how was Simulink primarily used?

a. Streaming real-time 4K video back to Earth mission control
b. Simulating and verifying the Entry, Descent, and Landing (EDL) flight control algorithms
c. Calculating the financial fuel costs of the Atlas V rocket launch
d. Rendering 3D textures for public media broadcasts

b. Simulating and verifying the Entry, Descent, and Landing (EDL) flight control algorithms

MathWorks MATLAB and Simulink were used to model, simulate, and test the complex guidance, navigation, and control (GN&C) systems.



100

Which command clears the Command Window text screen in MATLAB?

a. clear
b. reset screen
c. clc
d. close all

c. clc

clc: clears the Command Window screen. clear: removes variables from the workspace. close all closes figure windows. reset screen: I made up.

100

What does MATLAB stand for?

a. MATrix LABoratory
b. Mathematical Laboratory
c. Material Analytics Testing Laboratory and Blueprints
d. Matrix Analysis Toolkit Laboratory


a. MATrix LABoratory

100

Which MathWorks product provides an environment used to model, simulate, and analyze dynamic systems visually through blocks and lines?

a. Stateflow
b. Simulink
c. MATLAB Coder
d. Simpscape


b. Simulink

Simulink is MathWorks' block-diagram environment for multi-domain simulation and Model-Based Design. Instead of writing text-based code, engineers connect functional blocks with signal lines to represent dynamic systems and simulate their behavior over time.

200

Major semiconductor and telecom giants (like Qualcomm and Ericsson) use MathWorks tools to design next-generation wireless networks. What core function does the 5G Toolbox serve in industry?

a. Managing cellular tower utility billing accounts
b. Simulating standard-compliant physical layer (PHY) signals, channel models, and link-level performance
c. Encrypting satellite phone voice calls in real time
d. Tracking smartphone GPS locations for retail advertising

b. Simulating standard-compliant physical layer (PHY) signals, channel models, and link-level performance

Engineers use MATLAB to generate standard-compliant reference waveforms, simulate real-world radio channel impairments, and evaluate link-level Bit Error Rates (BER).

200

What is the output of the following MATLAB code?
>> x = [10, 20, 30, 40, 50];
>> y = x(2:4);
>> disp(length(y))

a. 5
b. 4
c. 3
d. 2

c. 3

x(2:4) extracts elements from index 2 to index 4 inclusive ([20, 30, 40]). The length of this slice vector is 3.

200

What is the online (cloud) version of MATLAB called?

a. MATLAB Remote
b. MATLAB Cloud
c. MATLAB Virtual
d. MATLAB Online


d. MATLAB Online

200

Which MathWorks product allows engineers to model physical systems, such as electrical circuits, mechanical linkages, hydraulic networks, and thermal systems?

a. Control System Toolbox
b. Simulink Control Design
c. System Identification Toolbox
d. Simpscape


d. Simscape

While standard Simulink uses directional signals (inputs and outputs), Simscape models physical networks using bidirectional schematic connections. Blocks represent real-world physical components, and equations are automatically derived directly from physical conservation laws.

300

When engineering self-driving cars, you must fuse data from cameras, LiDAR, and radar to navigate unknown environments. What essential autonomous navigation capability does MATLAB support through its robotics toolboxes?

a. Fast Fourier Transform (FFT)
b. Finite Element Analysis (FEA)
c. Monte Carlo Tree Search (MCTS)
d. Simultaneous Localization and Mapping (SLAM)

d. Simultaneous Localization and Mapping (SLAM)

MATLAB’s Navigation and Automated Driving toolboxes provide pre-built algorithms for 2D and 3D SLAM, pose graph optimization, and sensor fusion using Extended Kalman Filters (EKF).

300

What is the result of disp(sum(A)) in the following script? 
>> A = [10, 20];
>> A(5) = 50;
>> disp(sum(A))

a. 80
b. 30
c. 150
d. Error: Index exceeds array bounds

a. 80

Directly assigning to an index beyond an array's current length (A(5) = 50) automatically expands the array and fills missing intermediate indices with zeros. A becomes [10, 20, 0, 0, 50], and its sum is 80.

300

Which free, self-paced interactive online learning course allows users to learn fundamental MATLAB syntax directly in a web browser in about two hours without installing software?

a. MATLAB Cody
b. MATLAB Central Answers
c. MATLAB Onramp
d. File Exchange


c. MATLAB Onramp

300

Which product provides functions and interactive apps to describe, analyze, and model/extract features from data?

a. Deep Learning Toolbox
b. Predictive Maintenance Toolbox
c. Statistics and Machine Learning Toolbox
d. Datafeed Toolbox


c. Statistics and Machine Learning Toolbox

The Statistics and Machine Learning Toolbox provides algorithms and GUI apps for descriptive statistics, hypothesis testing, data visualization, feature selection, and supervised/unsupervised machine learning. It allows engineers and scientists to build predictive models from tabular data without writing complex machine learning pipelines from scratch.

400

Before building expensive physical prototypes, engineers connect real embedded hardware controllers to real-time virtual simulations generated by MathWorks software. What is this widely used industrial testing technique called?

a. Hardware-in-the-Loop (HIL) Testing
b. Software-Free Prototyping (SFP)
c. Manual Bench Verification (MBV)
d. Analog Signal Duplication (ASD)


a. Hardware-in-the-Loop (HIL) Testing

In HIL testing, physical controller hardware is connected to a high-speed real-time computer running a Simulink virtual model. The virtual simulation sends fake sensor signals into the physical controller, and the controller sends real actuator outputs back into the simulation.


400

What is the output of disp(v(4)) after running this line? 
>> v = linspace(0, 10, 5);
>> disp(v(4))

a.4
b. 7.5
c. 5.5
d. 8

b. 7.5

linspace(0, 10, 5) generates 5 equally spaced points from 0 to 10:
[0, 2.5, 5, 7.5, 10]. The fourth element v(4) is 7.5.

400

How can MATLAB work alongside SolidWorks?

a. Simscape Multibody Link
b. SolidWorks-to-MATLAB Bridge (SMB)
c. Simulink CAD Direct
d. SimMechanics Express


a. Simscape Multibody Link

An official plugin provided by MathWorks that integrates CAD software. You can export an entire 3D SolidWorks assembly flawlessly to analyze 3D dynamic simulations, control system design, fluid mechanics, circuit analysis, etc.

400

4. Which software tool generates readable, compact, and fast C and C++ code specifically optimized for ______ processors and microcontrollers used in mass-production systems?

a. Embedded Coder
b. Fixed-Point Designer
c. HDL Coder
d. Polyspace Bug Finder

a. Embedded Coder

Embedded Coder extends MATLAB Coder and Simulink Coder by generating production-grade C/C++ code for resource-constrained embedded targets. It includes advanced optimization options, fine-grained control over code structure and memory usage, and compliance support for safety standards.

500

Beyond physical engineering, quantitative analysts on Wall Street and major energy trading firms rely heavily on MATLAB. What is its primary application in the financial sector?

a. Designing credit card microchips
b. Writing front-end HTML/CSS code for consumer mobile banking apps
c. Managing retail bank branch staff schedules
d. Risk modeling, portfolio optimization, option pricing, and algorithmic trading


 

d. Risk modeling, portfolio optimization, option pricing, and algorithmic trading

Financial quantitative analysts use MATLAB's fast matrix math and statistical toolboxes (like the Financial Toolbox and Risk Management Toolbox) to evaluate market risks, calculate Value-at-Risk (VaR), construct efficient portfolio allocations, price exotic derivatives using Monte Carlo simulations, and backtest algorithmic trading strategies on historical market data.

500

What value is displayed when f(3) is executed?
>> a = 5;
>> f = @(x) x + a;
>> a = 10;
>> disp(f(3))

a. 13
b. 10
c. 15
d. 8

d. 8

Anonymous functions capture workspace variables at the moment the handle is created. Changing a = 10 afterwards does not modify the variable snapshot bound to f. Thus, f(3) computes 3 + 5 = 8.


500

What is the official MathWorks cloud storage service that automatically syncs, stores, and accesses your scripts, figures, and .mat data files across all devices?

a. MATLAB Cloud
b. MATLAB Drive
c. MATLAB Sync
d. MATLAB Central Workspace


b. MATLAB Drive

500

Which tool enables users to package and share MATLAB programs and GUIs as standalone desktop applications or web apps for free?

a. MATLAB Coder
b. MATLAB Production Server
c. MATLAB Web App Server
d. MATLAB Compiler

d. MATLAB Compiler

MATLAB Compiler encrypts and packages MATLAB code into executable files (.exe, .app) or web app packages (.ctf). End users can run these applications for free using the MATLAB Runtime engine—a shared set of libraries that executes MATLAB programs without requiring a full MATLAB installation or license.