Problem 1578. Volume and area of a sphere
Input(r) - radius
Output([v,s]) - volume and area
Solution Stats
Problem Comments
-
5 Comments
This test suite does not work. This problem uses 'sphere' as the function handle, but MATLAB already has a sphere function. This means whenever the test suite runs the code entered by the user is never touched, MATLAB runs its own sphere function on the input given, which return matrices representing a unit sphere. This test suite must be changed for this problem to be solvable.
Has anyone solved this Problem ? it Looks like some error in test suits.
even if you copy the y, z values from test suit and make straight Forward answer without any logic, still it Fails.
This problem is now solvable. The error came in the function being named sphere(), as that is already a built-in function Matlab.
Solution Comments
Show commentsGroup

MATLAB JOINT CODY EVENT 2024
- 20 Problems
- 10 Finishers
- Slope intercept application
- findPositiveEvenNumbers
- Hemisphere Volume on Top of a Cylinder
- area
- Return area of square
- Potential energy calculation
- Volume and area of a sphere
- Create the following sequence : 0 1 1 4 9 25 64 169 ...
- Unique - Very Very Large Numbers
- Sum of series
- "mirror" matrix
- Pernicious Anniversary Problem
- Find Logic 20
- Remove element(s) from cell array
- Matlab Basics - Rounding II
- It dseon't mettar waht oedrr the lrettes in a wrod are.
- Are all the three given point in the same line?
- Is the Point in a Triangle?
- Counting Sequence
- Word Counting and Indexing
Problem Recent Solvers523
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!