Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function result = u3()
- r = round(rand(4,6)*10)
- add = sum(r(:,1))
- if(add>305)
- result = mean(r(:,5));
- elseif(add<295)
- result = mean(r(:,4));
- elseif(305>add>295)
- result = mean(r(:,6));
- end
- subplot(2,2,1); hist(r)
- subplot(2,2,2); hist(mean(r))
- subplot(2,2,3);maxW=max(r);hist(maxW)
- subplot(2,2,4);minW=min(r);hist(minW)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement