Thread Subject: i need to get numerical value

Subject: i need to get numerical value

From: Vidhya PRakash

Date: 8 Aug, 2009 00:29:02

Message: 1 of 2

I need to get the numerical value..

primes(37)
 I need to get oly single value from this.. Whole Number

Subject: i need to get numerical value

From: Juliette Salexa

Date: 8 Aug, 2009 01:28:01

Message: 2 of 2

v=primes(37)
v = 2 3 5 7 11 13 17 19 23 29 31 37

Which value do you want ??

If you want the last one:

v(end)
 =37

Do you want the NUMBER of them ??

length(primes(37))
= 12

------------------
please be more SPECIFIC in your questions.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
primes Sprinceana 22 Aug, 2009 04:36:20
reference Sprinceana 22 Aug, 2009 04:36:20
prime number Sprinceana 22 Aug, 2009 04:36:20
rssFeed for this Thread

Contact us at files@mathworks.com