photo

mayur saraiya


2014 年からアクティブ

Followers: 0   Following: 0

Professional Interests: power engineering

統計

  • Thankful Level 1

バッジを表示

Feeds

表示方法

質問


Question-1: Consider a set of N numbers, myArray, (represented as a row vector) which is not ordered. Write a function myStats which takes myArray and an integer k such that 1≤k≤N and returns the kth largest and kth smallest element in myArray. Your
Question-1: Consider a set of N numbers, myArray, (represented as a row vector) which is not ordered. Write a function myStats ...

約10年 前 | 0 件の回答 | 0

0

回答

質問


Modify the function myStats (from question-1) and write myStats_2 so that the input argument k is optional. In case this argument is omitted, then the function myStats_2 returns the smallest and the largest element in the myArray. Write a script he
Modify the function myStats (from question-1) and write myStats_2 so that the input argument k is optional. In case this argume...

約10年 前 | 0 件の回答 | 0

0

回答

質問


Let the array a be declared as a = [ 1, 2; 2, 3]. Consider the definition of another array d as, d = zeros(size(a)) + 2. What will be the values in d? Select one: a. [ 2, 0 ; 0 , 0] b. [ 2, 2 ; 2 , 2] c. [ 2, 2 ; 0 , 0] d. [ 2, 0 ; 2 , 0]
Let the array a be declared as a = [ 1, 2; 2, 3]. Consider the definition of another array d as, d = zeros(size(a)) + 2. What w...

約10年 前 | 1 件の回答 | 0

1

回答

質問


-Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a ( 2:3, 1:2)= 0 results in Select one: a. a = [ 0 0; 0 0; 0 0; 0 0] b. a = [ 1 0; 0 0; 1 0; 0 0] c. a = [ 1 2; 2 3; 1 2; 2 3] d. a = [ 1 2; 0 0; 0 0; 2 3]
-Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a ( 2:3, 1:2)= 0 results in Select...

約10年 前 | 1 件の回答 | 0

1

回答

1

回答

質問


Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3]. The assignment statement a(4:-1:1, 3:-1:1)=0 results in
Let the array a be declared as a = [ 1, 2; 2, 3; 1, 2; 2, 3] The assignment statement |a(4:-1:1,3:-1:1)=0| results in S...

約10年 前 | 2 件の回答 | 0

2

回答