Solved

# Matlab

Posted on 2016-08-22
21 Views
Write a function called circle that takes a scalar input r. It needs to return an output called area that is the area of a circle with radius r and a second output, cf that is the circumference of the same circle. You are allowed to use the built-in function pi. In fact, you need to use it to get the value of π as accurately as possible.
0
Question by:Sule Jalal
• 2

LVL 17

Accepted Solution

xtermie earned 500 total points (awarded by participants)
Guy is correct
Here is a Matlab guide to code
http://www.csc.kth.se/utbildning/kth/kurser/DN2255/ndiff13/matopt.pdf

Good luck!
0

Assisted Solution

Sule Jalal earned 0 total points (awarded by participants)
Thanks for your pleseant email Phoffric. Upon, searching for help on Google, I was quickly directed to this site and posted the direct question without the know abouts of how the site really works. I will do so, in future postings.
0

LVL 17

Expert Comment

Good comment and suggestions provided
0

## Featured Post

### Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.