Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

matlab Specific entries in a two dimensional array dataMatrix are identified by a logical index array logicalSelect . Assign the first numSelected of the selected

matlab Specific entries in a two dimensional array dataMatrix are identified by a logical index array logicalSelect. Assign the first numSelected of the selected elements to an array selectedData.
Ex: If dataMatrix is 1-2,3,6: 5,78,44: 9,-3,-53], logicalSelect is [1,0,0: 0,0,1: 1,1,1], and numSelected is 4, then selectedData is [-2.
9: -3: 44].
Function e
E Save C Reset EE MATLAB Documentation
function selectedData - SelectLogicalN( dataMatrix, logicalSelect, numSelected )
%
SelectLogicaiN: Return the first numSelected values of input 20 array dataMatrix indexed by localselect indexing array.
Inputs: dataMatrix - input data matrix (2D array)
logicalSelect - logical indexing array, can be 2D on Linean numSelected - number of indexed elements to return in selectedData
OutputS
SelectedData - column vector of logically indexed elements to return
% Assign tempselected with logically indexed elements of dataMatrix tempSelected - dataMatrix;
% Assign
selectedData with first numselected elements of tempselected
selectedData = dataMatrix;
end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago