matrix function that compare a list of real numbers with a real number
I need a function which accepts as input a list of real numbers, and a real number X and which returns to the output:
• The number of how many times the number (X) appear in the table
• The location where this number appears in the table
• A table that will have the value 0 in the positions where (X) appears and the value -1 in the remaining positions
• A table(matrix) where the elements of the original matrix that is larger than the input number (X) will be replaced with the maximum number of the original table
• A vector which will contain all the unique elements of the input table whic...Computation using real numbers as opposed to rational approximations to real numbers
Since computers doing credible numerical analysis are going to spend
most of their time waiting for data to arrive from the other side of the
universe, perhaps we can find a way to keep exotic CPU's busy while waiting.
Would anyone care to speculate on the possibility of using (recursively
computable) continued fractions to do arithmetic with actual real
numbers, as opposed to rational approximations to real numbers?
Unless you throw sand in the gears by deliberately introducing
pathological real numbers (e.g. ones whose continued fraction
representation would involve frequent prim...How can I load complex and real numbers into MatLab
I have a rather simple problem. I have a file containing real and
complex numbers in distinct colomns. The file is in a normal ANSI txt
format, with tap. as separator.
0.0034 0.00032 - i0.0004
0.0012 0.00345 + i0.0112
I have tried with load, dlmread, and fscanf. but it don't
seems to work.
Are there anyone there have any idea on how I can load this data into
matlab as a matrix.
If you know the exact structure of the file (i mean, let all the odd
numbered columns contain real values etc) then, get the each line and
use strread to separate them....this is mere an ide...Complex Numbers to Real numbers
What is the best way to convert a complex number say "5 - .2i" to a
The function real returns the real part, but if I need a complex
number as a real value, is that the best way to convert it to a real
In article <firstname.lastname@example.orgYaTP>, Mark <email@example.com> wrote:
> What is the best way to convert a complex number say "5 - .2i" to a
> real value?
> The function real returns the real part, but if I need a complex
> number as a real value, is that the best way to convert it to a real
...Largest and smallest real numbers Fortran is capable of handling
How do I find the largest and smallest real numbers my Fortran77
compiler (gcc) is capable of handling. For example, in C, I'd check
(if I remember correct) REAL_MAX and REAL_MIN in the header file
limits.h. How do I do this in Fortran77?
eric948470 <firstname.lastname@example.org> wrote:
> How do I find the largest and smallest real numbers my Fortran77
> compiler (gcc) is capable of handling. For example, in C, I'd check
> (if I remember correct) REAL_MAX and REAL_MIN in the header file
> limits.h. How do I do this in Fortran77?
You look in the compiler document...Real-Time Workshop use Embedded Matlab Function to generate random numbers
In the Real Time Workshop I am trying to use in an embedded Matlab function in Stateflow the two function “rand” and “round”, but I always get the following error:
Failed to eliminate a use of the MATLAB function 'rand/round'. For non-simulation builds, uses of unsupported MATLAB functions are eliminated if they do not effect the model outputs.
The code that I am using is the seguent:
I would like please to ...Forcing Matlab to use real numbers instead of scientific notation on axis labels
How do I force Matlab to use the actual values as axis labels instead
of it automatically switching to scientific notation?
I have a plot that ranges from 200 to 500 on the x-axis, and from
-9000 to +9000 on the y-axis. When I plot the data, the figure uses
the y-scale as -1x10^4 to +1x10^4. I want it to say -10,000 to
I'm sure there's a fairly easy way to do this, but I couldn't find it
in the help.
> How do I force Matlab to use the actual values as axis labels
> of it automatically switching to scientifi...change from real numbers to complex numbers
I have a matrix (A) which contains all complex numbers.
I did this:
X = real(uint8(A))
I got a matrix (X) that contains all real numbers.
is it possible to change the matrix (X) back to its original matrix
Thanks in advance
> Hi guys,
> I have a matrix (A) which contains all complex numbers.
> I did this:
> X = real(uint8(A))
> I got a matrix (X) that contains all real numbers.
> is it possible to change the matrix...converting binary numbers to real numbers
Please tell me how to convert binary numbers to real numbers. How to
do the programme?
In article <email@example.comYaTP>, "malar nayana"
> Please tell me how to convert binary numbers to real numbers. How to
> do the programme?
> Thank you.
What form are your binary numbers in? Strings, vectors of 1's and 0's,
what? Do they represent integers, or if not what determines their binary
(Remove "xyzzy" and ".invalid" to send me email.)
Roger Staffor...Conversion of decimal number to real number
My data is in form of matrix with values upto four decimal points with both +ve and -ve signs. i want convert the matrix values into equivalent binary values ...please help
"Neetika Bhalla" <firstname.lastname@example.org> wrote in message
> My data is in form of matrix with values upto four decimal points with
> both +ve and -ve signs. i want convert the matrix values into equivalent
> binary values ...please help
What do you consider the "equivalent binary value" of something like 0.1?
How about -0....real number to 16 bit signed number
a) i want to convert a real number to 16 bit signed binary number.
the real number is 2E15-1.so how should i do it.do we have any
default packages for that.
"hari" <email@example.com> wrote in message
> a) i want to convert a real number to 16 bit signed binary number.
> the real number is 2E15-1.so how should i do it.do we have any
> default packages for that.
Assuming you mean SIGNED from Numeric_std, you could use
signal S...Change real numbers to complex numbers, very easy question
I want to write a subroutine. This is an easy subroutine however I don't know Fortran so not easy for me.
First of all I want to multiply all matrix element with imaginary(i), for instances, I have B matrix all numbers are real, as 231 or 352 they will become 213i or 352i.
w is real number, M, A, B and C are known matrices. B will change to imaginary Bi matrix. So How can I obtain F matrix? Can you help me? Sincerely..
F = -(w^2)*(M+A)+(imaginary(B))*w+C
On Tuesday, March 4, 2014 1:10:32 PM UTC-5, Salim Tamer wrote:
> Dear friends,
> I want to write a s...Number of Numbers
Hi! i need help... there is a function that would let me now the
number of numbers in a string?
Hi! i need help... is there a function that would let me Know the
number of numbers in a string?
On Sep 10, 1:22=A0pm, misschupito <cristinap...@gmail.com> wrote:
> =A0Hi! i need help... is there a function that would let me Know the
> number of numbers in a string?
> =A0 Thanks
Not sure if tehre is an easier way but this would work
char=3D'abdj 34 fffk 45fg';
Does anyone know if negative numbers really exists or if it is only a
myth spread by mathematicians.
> Does anyone know if negative numbers really exists or if it is only
> myth spread by mathematicians.
If one writes -1 on a piece of paper is that a negative number, or
simply a symbol we call a negative number? If I have a bunch of
apples in a basket I cannot count a negative number of apples in the
basket. However, my mortage company continues to tell me that I owe
them more money than they gave me. So is the differen...Returning the real numbers withing a vector containing imaginary and real
Hi, i have a vector containing real and imaginary numbers,
what can i do to return only the real numbers within that vector,
i.e a = [3+0.2i, 5, 4+0.5i, 6]
and to give ans = 5 6
any help greatly appreciated,
last post about the return positive in vector was really helpful
> Hi, i have a vector containing real and imaginary numbers,
> what can i do to return only the real numbers within that vector,
> i.e a = [3+0.2i, 5, 4+0.5i, 6]
> and to give ans = 5 6
> any help greatly appreciated,
> last post about the return positiv...Smallest number
Is there a way, via refelction, to know what's the smallest
representable positive number on a given implementation of St?
> Is there a way, via refelction, to know what's the smallest
> representable positive number on a given implementation of St?
Do you need a portable solution, or will Float class>>fmin do ?
If not then I seem to remember that Didier Bessets' book has a routine to
discover the smallest representable Float, but I can't remember the details
offhand. It was something like "divide by 2 until an Underf...Convert Floating point number into fixed point number in Matlab
I have a GUI Matlab program using floating point number. My job is to convert floating number to fixed point number. I found some information about "fixed-point designers", but I dont know how to use that for big program with many functions and GUI.Do you have any experiences for these problems?Thank you.
...New real number handling using some feedback from studying complex numbers
It's in java and for a different purpose, but maybe the reals should
extend like this in trig.
...Big mystery: why my uitable display complex numbers when the number in the structure are real?!!!!
Uitable is driving me crazy, I can;t understand that's happening.
I am working on a GUI, and at some stage I display in a uitable data I have stored previously in a structure. This data come from calculations on energy data, which are real numbers (not complex).
My uitable displays my numbers as if they were complex numbers!
For example, if I am displaying the following matrix:
A=[NaN 2; 8 3];
I see in my uitable:
(Even the NaN appear like NaN+0.0000i that's crazy!!!!)
That's incredible!!! When I load my structure...Mac Net Apps share trend analyzed with real numbers and real statistics!
Hi, Alan Baker
Take the Net Apps share for Windows, Mac and Linux. Total those
shares and calculate the share of the each OS based on that total. You
get the OS share of the 3 major platforms, and ignore the mobile and
misc. OS shares.
The Mac share increases have declined steadily since early 2009. See
Windows share erosion has, no big surprise, correspondingly slowed.
see this chart:
http://docs.google.com/fileview?id=0BxuJGTDTmSZ1NzFmZGIzM2MtZDY5Yi00Mz...matlab inverse value and in c gsl inverse values are not same when i am giving large values
matlab inverse value and in c gsl inverse values are not same when i am giving large values
int main (void)
gsl_matrix * m = gsl_matrix_alloc (col, col);
gsl_matrix * inverse = gsl_matrix_alloc (col, col);
gsl_permutation * p = gsl_permutation_alloc (col);
int..."A random real number will be on a computables list to an infinite number of digits"
True / False / Other ?
"All finite subsequences of a random real number will be on a computables list" True / False / Other
"All digits of a random real number are covered in all finite subsequences of that number" True / False / Other
"If you have the list of computables, a random real number can be on it to an infinite number
of digits, and yet not be on the list" True / False / Other
Have you now or have you ever been a member of the antidisestablishmentarianism party?
> True / False / Other ?
&...why Matlab 2013a solve() does not return all real solutions when using 'Real' option?
according to http://www.mathworks.com/help/symbolic/solve.html it says
"If you need a solution in real numbers, use Real, true"
Ok, lets see:
t1=pi*(((rt/2 + 74798900)^3/132700000000)^(1/2) + ...
((rt/2 + 1632333680397517/4194304)^3/132700000000)^(1/2));
sol2=solve(t1 == t2, rt);
- 1.23455e9 - 1.36189e9*i
- 1.23455e9 + 1.36189e9*i
So, one would assume using 'Real', true, would now return only
first 2 solutions...call any usa REAL telephone number from the internet at pulver freeworld for .06 per minute
You dreamed of it - now you can have it
..06 per minute - call any telephone in the USA!
$10 a month to RECEIVE calls with YOUR OWN REAL PHONE NUMBER!
All via your Pulver freeworld account
No hidden fees
No extra monthly charges
You are billed ONLY for the minutes you use and they roll to the next
month if you don't use them.
First month buy 650 minutes and they roll forever until you use them
Pay by paypal, only.
For $50, get a REAL telephone number ANYONE can call and 650 minutes!
You must continue to pay $10 a month for the phone number.