Prev: How to calculate image hash as a bit sequence of 0's and 1's
Next: Variable name for a table in matlab?
From: fiza khalid on 18 Jun 2010 01:21 "fiza khalid" <princess.2050(a)hotmail.com> wrote in message <hvesgs$qfc$1(a)fred.mathworks.com>... > "Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hvabeg$2sl$1(a)fred.mathworks.com>... > > Dear fiza! > > > > > >>thankyou 4 your support but please tell me the code which u refer to me how i can run that as i got error when i tried to run that.that code is using java files.i need to know which java files i need to install to run that code in Matlab.please do reply me and help me. > > > > You do not need to install Java for this function - but this works for newer Matlab versions only. Please tell us the exact error message and your Matlab version. > > If you spend your time to search the FEX, you'd find this MD5 calculator, which is fast and does not call Java: > > http://www.mathworks.com/matlabcentral/fileexchange/25463 > > > > Jan > >thanx jan the error i m getting to run this is > >Error in ==> hash at 52 > inp=typecast(inp,'uint8'); > how can i rectify this please tell me. i am using Matlab version 7.0.0.1
From: Walter Roberson on 18 Jun 2010 08:40 fiza khalid wrote: > inp=typecast(inp,'uint8'); how can i rectify this please tell me. You need R14SP3 (Matlab 7.1) to use typecast. What data type is your inp matrix? If it is double then you can use num2hex() on each entry and then sscanf(TheHexValue,'%2x%2x%2x%2x') to get the individual bytes. If it is something else, post the data type... I'm not going to do a bunch of fishing around in the old documentation to figure out all the different possible ways to do things in software that is 6 years out of date.
From: fiza khalid on 21 Jun 2010 07:32 Walter Roberson <roberson(a)hushmail.com> wrote in message <mPJSn.101418$304.627(a)newsfe12.iad>... > fiza khalid wrote: > > > inp=typecast(inp,'uint8'); how can i rectify this please tell me. > > You need R14SP3 (Matlab 7.1) to use typecast. > > What data type is your inp matrix? If it is double then you can use > num2hex() on each entry and then sscanf(TheHexValue,'%2x%2x%2x%2x') to > get the individual bytes. > > If it is something else, post the data type... I'm not going to do a > bunch of fishing around in the old documentation to figure out all the > different possible ways to do things in software that is 6 years out of > date. >>i changed my Matlab version and remove that error but now next error. >>while i run this code i got an error how can i rectify that plz anybody help me.As i input a stirng as inp=input('hello good day'); i am getting an error as >>A Non-scalar value was passed for a scalar argument >>Error in ==> hash at 72 >>x.update(inp); plz tell me how i can correct it to get hash value of a string. tell me about correction of this as soon as possible.
From: Walter Roberson on 21 Jun 2010 10:16 fiza khalid wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <mPJSn.101418$304.627(a)newsfe12.iad>... >> fiza khalid wrote: >> >> > inp=typecast(inp,'uint8'); how can i rectify this please tell me. >> >> You need R14SP3 (Matlab 7.1) to use typecast. >> >> What data type is your inp matrix? If it is double then you can use >> num2hex() on each entry and then sscanf(TheHexValue,'%2x%2x%2x%2x') to >> get the individual bytes. >> >> If it is something else, post the data type... I'm not going to do a >> bunch of fishing around in the old documentation to figure out all the >> different possible ways to do things in software that is 6 years out >> of date. >>> i changed my Matlab version and remove that error but now next error. >>> while i run this code i got an error how can i rectify that plz >>> anybody help me.As i input a stirng as > inp=input('hello good day'); > i am getting an error as >>> A Non-scalar value was passed for a scalar argument >>> Error in ==> hash at 72 >>> x.update(inp); > plz tell me how i can correct it to get hash value of a string. > > tell me about correction of this as soon as possible. I have no idea what x.update() is in this situation. What are you typing in response to the input query? If you type more than one value then that would be an array; for what-ever reason, x.update() is expecting only a single value there.
From: fiza khalid on 1 Jul 2010 08:40
Walter Roberson <roberson(a)hushmail.com> wrote in message <MuKTn.64526$h57.45542(a)newsfe22.iad>... > fiza khalid wrote: > > Walter Roberson <roberson(a)hushmail.com> wrote in message > > <mPJSn.101418$304.627(a)newsfe12.iad>... > >> fiza khalid wrote: > >> > >> > inp=typecast(inp,'uint8'); how can i rectify this please tell me. > >> > >> You need R14SP3 (Matlab 7.1) to use typecast. > >> > >> What data type is your inp matrix? If it is double then you can use > >> num2hex() on each entry and then sscanf(TheHexValue,'%2x%2x%2x%2x') to > >> get the individual bytes. > >> > >> If it is something else, post the data type... I'm not going to do a > >> bunch of fishing around in the old documentation to figure out all the > >> different possible ways to do things in software that is 6 years out > >> of date. > >>> i changed my Matlab version and remove that error but now next error. > >>> while i run this code i got an error how can i rectify that plz > >>> anybody help me.As i input a stirng as > > inp=input('hello good day'); > > i am getting an error as > >>> A Non-scalar value was passed for a scalar argument > >>> Error in ==> hash at 72 > >>> x.update(inp); > > plz tell me how i can correct it to get hash value of a string. > > > > tell me about correction of this as soon as possible. > > I have no idea what x.update() is in this situation. > > What are you typing in response to the input query? If you type more > than one value then that would be an array; for what-ever reason, > x.update() is expecting only a single value there. >>thnx for your reply but plz tell me about this i m typing only a single value in response to this. inp=input('hello'); error is in x.update(inp); but if i comment this x.update(inp) it is giving me hash value but same for all type of input not changing it. plz do help me if u can thnx in advance,. |