Docs @ Psychtoolbox Wiki : NameFrequency

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

NameFrequency

PsychtoolboxPsychOneliners

fName=NameFrequency(fValue, [numDecimalPlaces])

NameFrequency accepts a frequency (in Hz) and returns a
string naming that frequency in a more readable form. For example:

>> c=Screen('Computer');
>> c.hw.cpufreq

ans =

999999997

>> NameFrequency(c.hw.cpufreq)

ans =

1.00 GHz

>> NameFrequency(c.hw.cpufreq,6)

ans =

999.999997 MHz

>>


By default NameFrequency displays two digits to the right of the decimal
point. Specify other numbers of digits by passing the optional
numDecimalPlaces argument.

NameFrequency is used by DescribeComputer to name the clock frequency of
the CPU. For that purpose, it displays frequency to a specified number of
decimal places, not to a specified precision. It is therfore a poor
choice for scientific work, where typcially a fixed precision in digits
is appropriate.

see also: NameBytes, DescribeComputer




Path   Retrieve current version of NameFrequency.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychOneliners/NameFrequency.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0206 seconds