|
From: helper on 6 May 2008 20:02 > >> which -all toChar > 'toChar' not found. > > >> version -java > > ans = > > Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) Client VM (mixed mode) I'm not sure why you wouldn't have this function. MATLAB is expecting this file to exist in: <MATLABROOT>\toolbox\matlab\datatypes\@opaque\toChar.m It appears you are missing some files and/or directories. All I can suggest is to reinstall MATLAB. Also, you might want to update your version of Java.
From: Mamata Kukreja on 5 May 2008 02:41 "us " <us(a)neurol.unizh.ch> wrote in message <fp3gts$8bc$1(a)fred.mathworks.com>... > "Mamata Kukreja": > <SNIP looking for his/her disks... > > > how to detect whether > > its E: or F: > > or watever differing from system to system... > > one of the (imcomplete) solutions (on winos') > > % get the list of current drives > import java.io.*; > f=File(''); > r=f.listRoots; > for i=1:numel(r) > disp(sprintf('%s',char(r(i)))); > end > % now you'd have to check each one for the > % contents you're looking for, eg, > dir(char(r(1))); > > us > > ERROR: ??? Undefined command/function 'toChar'. Error in ==> opaque.char at 94 chr = toChar(opaque_array(1)); Error in ==> untitled at 6 disp(sprintf('%s',char(r(i)))); >
From: Mamata Kukreja on 5 May 2008 02:45 roberson(a)ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in message <fp4b3e$csc$1(a)canopus.cc.umanitoba.ca>... > In article <fp31o5$jq0$1(a)fred.mathworks.com>, > Mamata Kukreja <mamata_kukreja(a)yahoo.com> wrote: > >roberson(a)ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in > >message <fp30am$ljd$1(a)canopus.cc.umanitoba.ca>... > >> In article <fp2sop$hsl$1(a)fred.mathworks.com>, > >> Mamata Kukreja <mamata_kukreja(a)yahoo.com> wrote: > > >> >I want to read images from an external source eg mobile .. > >> >how to read is clear but how do we detect the system drive > >> >.. ie wen i connect the data cable .. how to detect whether > >> >its E: or F: or watever differing from system to system. > > >> Your question is outside of the reach of Matlab. > > >But there should be some solution to reading images from an > >external device .. some command or function .. if i had a > >digital photo keychain .. and want to insert images in it or > >read fromn the SD card .. ?? > > Matlab is not a systems programming language. There doesn't have to > be a solution to any hardware problem within Matlab itself. > > Thought experiment: if you were to take the keychain and copy > its contents to another keychain, and then were to put both on the > same system, then how are you going to identify which is the "right" > device? Not by the contents. Therefore you are going to have to > examine the system information tables or make system calls in order > to find out the device serial numbers and compare them to the one > you know to be the right one. This duplication of a device might > sound unlikely, but consider this: on my PC, I can put a camera memory > stick into my printer and have it mounted as a USB drive, and I > can also connect up my camera to the PC and have that mounted as > a USB drive. Which is the right drive? As long as you are trying > to detect the drive automatically instead of asking the user, > you need to track device serial numbers. If you don't know > the device serial numbers ahead of time, it is logicaly impossible > to figure out which of several substantially similar drives is > the right one. Unless, that is, that the key to this is that it > must be the one that was most recently inserted or which must be > inserted while the program is already running. > > Poking on my PC a bit, I see that possibly looking in the > registry at HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices > might help to find out which drives are there. There is an entry > for each drive letter. > -- > "Man's life is but a jest, > A dream, a shadow, bubble, air, a vapor at the best." > -- George Walter Thornbury ----------------------------------------------------------- % get the list of current drives import java.io.*; f=File(''); r=f.listRoots; for i=1:numel(r) disp(sprintf('%s',char(r(i)))); end % now you'd have to check each one for the % contents you're looking for, eg, dir(char(r(1))); ERROR:: ??? Undefined command/function 'toChar'. Error in ==> opaque.char at 94 chr = toChar(opaque_array(1)); Error in ==> untitled at 6 disp(sprintf('%s',char(r(i))));
From: helper on 5 May 2008 03:57 "Mamata Kukreja" <mamata_kukreja(a)yahoo.com> wrote in message <fvmadh$163$1(a)fred.mathworks.com>... > ERROR:: > ??? Undefined command/function 'toChar'. > > Error in ==> opaque.char at 94 > chr = toChar(opaque_array(1)); > > Error in ==> untitled at 6 > disp(sprintf('%s',char(r(i)))); Interesting. This works on my computer. What does the output of the following command return? which -all toChar
From: helper on 5 May 2008 04:02
"helper " <spamless(a)nospam.com> wrote in message <fvmeke$p47 $1(a)fred.mathworks.com>... > "Mamata Kukreja" <mamata_kukreja(a)yahoo.com> wrote in > message <fvmadh$163$1(a)fred.mathworks.com>... > > > ERROR:: > > ??? Undefined command/function 'toChar'. > > > > Error in ==> opaque.char at 94 > > chr = toChar(opaque_array(1)); > > > > Error in ==> untitled at 6 > > disp(sprintf('%s',char(r(i)))); > > > Interesting. This works on my computer. What does the > output of the following command return? > > which -all toChar Also, what does the output of this command return? version -java |