function with float and integer, MATLAB Programming

Assignment Help:
hi i have this programm
function [IRN,number ] = randnumbers( IRN )

IRN=int32(IRN)

ITOTAL=(IRN*330)+100
ITOTAL=int32(ITOTAL);

IQUOTIENT=ITOTAL/2303
IQUOTIENT=int32(IQUOTIENT);

IRN=ITOTAL-(IQUOTIENT*2303);

IRN=int32(IRN);

number =double(IRN/2303)
return

end

and when i am calling the function the number returns zero and it is not correct because it must be returned 0.2657 with IRN=183

Related Discussions:- function with float and integer

Visual cryptography, how to implement 3 out of 4 visual cryptography in MAT...

how to implement 3 out of 4 visual cryptography in MATLAB?

Function definitions, Function definitions: There are various ways to ...

Function definitions: There are various ways to organize the scripts and functions, but for now every function which we write will be stored in a separate M-file, that is why

Need urgent help, i want to save the values of a particular equation in a f...

i want to save the values of a particular equation in a for loop.. for ex: for i=1:100 et=(x+yz); end thus how can i store the values of et at each iteration

Wireless, can i getting wirless programing in matlab

can i getting wirless programing in matlab

Option pricing, Barrier Option pricing in Matlab using MC simulation or fin...

Barrier Option pricing in Matlab using MC simulation or finite difference methods

Create a vector representing x coordinates of a measurement, Problem 1. Cr...

Problem 1. Create a vector representing x coordinates of a measurement with 20 points between 0 and 10. Create another vector y representing fake measurements which are related to

Obtain the input - algorithms, Obtain the input - Algorithms: From whe...

Obtain the input - Algorithms: From where does the input come? The two possible choices would be from an external file on a disk, or from the user, who enters the number by ty

Decision feedback equiliser, i want matlab code for DFB Equiliser and the o...

i want matlab code for DFB Equiliser and the output between tha number of iterations vs MSE

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd