Q:

A company is calibrating some measuring instrumentation and has measured the radius and height of one cylinder 10 separate times; they are in vector variables r and h

0

 A company is calibrating some measuring instrumentation and has measured the radius and height of one cylinder 10 separate times; they are in vector variables r and h. Find the volume from each trial, which is given by Πr2h. Also use logical indexing first to make sure that all measurements were valid (> 0).

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> r = [5.501 5.5 5.499 5.498 5.5 5.5 5.52 5.51 5.5 5.48];

>> h = [11.11 11.1 11.1 11.12 11.09 11.11 11.11 11.1 11.08 11.11];

>> all(r>0 & h>0)

ans =

 1

>> vol = pi * r.^2 .* h

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now