Question
Using MATLAB, write a program that accepts 15 real numbers from the user and stores them in an array (call it Array). From this array,
Using MATLAB, write a program that accepts 15 real numbers from the user and stores them in an array (call it Array). From this array, create three arrays
one that contains all the elements of the original array that are less than or equal to -1 (call it Array1), one that contains all elements of the original array that are between
1 and 1 (call it Array2), and one that contains all elements of the original array that are bigger than or equal to 1 (call it Array3). Please note that some of these arrays may be empty (if there are no numbers in the corresponding interval).
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