Answered step by step
Verified Expert Solution
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
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 elementsStep 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