MATLAB code help

8 ビュー (過去 30 日間)
Big Meech
Big Meech 2011 年 4 月 15 日
I'm fairly new to mat lab and was wondering if someone code check my function code for me.
Here is what I'm trying to accomplish.
V = 1/4 * PI (a+b)(b-a)^2
A = PI ^2 (b^2 - a^2)
(i) Write a function that computes V and A from the arguments a and b. (ii) Assume that the outer radius b is constrained to be 2 inches greater than the inner radius a.
Write a function that uses your function in (i) to plot A and V versus a for 0.25 <= a <= 4 inches.
Also how would I run a function in MATLAB
Thanks

回答 (1 件)

Matt Fig
Matt Fig 2011 年 4 月 15 日
First thing is to read what comes up when you type this:
docsearch('M-file function')

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by