Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
root (cube, 4th, nth)

Subject: root (cube, 4th, nth)

From: Riyman

Date: 18 Feb, 2010 14:59:08

Message: 1 of 4

Hi,

what are the commands to find:
cube root,
4th root
nth root

Thanks for your help,
R.

Subject: root (cube, 4th, nth)

From: James Allison

Date: 18 Feb, 2010 15:11:57

Message: 2 of 4

x^(1/n)

Riyman wrote:
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.

Subject: root (cube, 4th, nth)

From: Sadik

Date: 18 Feb, 2010 15:14:02

Message: 3 of 4

How about x.^(1/n) ?

Best.

"Riyman " <r_iman_2008@hotmail.com> wrote in message <hljkjs$i04$1@fred.mathworks.com>...
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.

Subject: root (cube, 4th, nth)

From: John D'Errico

Date: 18 Feb, 2010 15:15:09

Message: 4 of 4

"Riyman " <r_iman_2008@hotmail.com> wrote in message <hljkjs$i04$1@fred.mathworks.com>...
> Hi,
>
> what are the commands to find:
> cube root,
> 4th root
> nth root
>
> Thanks for your help,
> R.

The trick here is to use the capabilities of matlab.
The lookfor function helps you to find the name
of a function that you know must exist, but you
simply don't know what it might be called.

You want to compute some root of a number. So
why not try this:

lookfor root

If you did that, you would have found a few
functions that compute roots.

Next, you might benefit from looking at some of
the elementary functions in matlab. So try this:

help elfun

Look there. You will find a few functions to
compute roots. Finally, you should recognize that
a root is simply a power. So

lookfor power

might give something interesting.

John

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us