How do I create a function where the user chooses input and output units?
1 次查看(过去 30 天)
显示 更早的评论
I need to create a function in which the user is prompted to choose whether they would like to input a value in 'in' or 'cm' or 'm' let's say. But I also need them to be able to choose whether they want the output in 'in' or 'cm' or 'm'.
And this is all for a function calculating the volume of a Sphere. How would one go about doing this code wise?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!