Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What does the following code find? vl= {1, 2, 3, 4}; v2 ={3,6,4}; Do[If [!MemberQ[v2,v1[[i]]], v2=Append[v2, vl[[i]]]],{i,1, Length[vi]}]; Print[v2]; O Finds the union of two
What does the following code find? vl= {1, 2, 3, 4}; v2 ={3,6,4}; Do[If [!MemberQ[v2,v1[[i]]], v2=Append[v2, vl[[i]]]],{i,1, Length[vi]}]; Print[v2]; O Finds the union of two vectors v1 and v2 O It finds the elements in v1 that are not in v2. O It finds the intersection of the two vectors v1 and v2 O None of the choices
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started