#创作灵感#
MATLAB基础知识官方课程学习笔记
MATLAB Fundamentals>Common Data Analysis Techniques>Summary of Common Data Analysis Techniques>(2/2) Project - Analyze Vehicle Data
任务名称:Fuel Economy Analysis
任务1:
The variable mpg
contains NaN
values. Find the rows in mpg
with NaN
values, and remove those rows from all three data vectors: mpg
, hp
, and wt
.
解答1:
nanIdx = ismissing(mpg)
mpg = mpg(~nanIdx);
hp = hp(~nanIdx);
wt = wt(~nanIdx);
结果1:
背景:
Fuel economy in the U.S. is typically given in miles/gallon. In many countries, however,