Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write in matlab 5. Write a function to create a fish structure with 10 elements randomly. Breed of all fish should be trout, length should

image text in transcribed

write in matlab

5. Write a function to create a fish structure with 10 elements randomly. Breed of all fish should be trout, length should be assigned a random integer between 0 and 100, weight should be assigned a random number between 0 and 1. After all 10 fishes are created, check the length of each fish. If the length is not in 20 - 40 cm range, delete the element from structure. Function should return the created fish structure with at most 10 elements

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

Step: 3

blur-text-image

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

Main Memory Database Systems

Authors: Frans Faerber, Alfons Kemper, Per-Åke Alfons

1st Edition

1680833243, 978-1680833249

More Books

Students also viewed these Databases questions

Question

=+ d. a professor deciding how much to prepare for class

Answered: 1 week ago