QUESTION 5 What number does val store at the end of the following code snippet? data = [85 64 128 NaN 36 NaN NaN 42 25 81 NaN]; val= sum(isnan(data));

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 12VE
icon
Related questions
Topic Video
Question

matlab questions please help 

QUESTION 6
What number does val store at the end of the following code snippet?
data = [85 64 128 NaN 36 NaN NaN 42 25 81 NaN];
data(isnan(data)) = 42;
val = sum(data == 42);
Transcribed Image Text:QUESTION 6 What number does val store at the end of the following code snippet? data = [85 64 128 NaN 36 NaN NaN 42 25 81 NaN]; data(isnan(data)) = 42; val = sum(data == 42);
QUESTION 5
What number does val store at the end of the following code snippet?
data= [85 64 128 NaN 36 NaN NaN 42 25 81 NaN];
val= sum(isnan(data));
Transcribed Image Text:QUESTION 5 What number does val store at the end of the following code snippet? data= [85 64 128 NaN 36 NaN NaN 42 25 81 NaN]; val= sum(isnan(data));
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning