How can I solve this?

Give a vector containing N real-valued random numbers, write an M-file to calculate how many elements are within (-0.25,0.5).
(Note: Test your program using randn(1,512) to generate the input vector whose length is 512.)

Answers (1)

Star Strider
Star Strider on 8 Jul 2020

0 votes

See the documentation for lt and its friends.

Categories

Find more on Mathematics in Help Center and File Exchange

Tags

Asked:

on 8 Jul 2020

Answered:

on 8 Jul 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!