<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823</link>
    <title>MATLAB Central Newsreader - Detecting System Drive ( urgent help )</title>
    <description>Feed for thread: Detecting System Drive ( urgent help )</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 07 May 2008 00:02:03 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430686</link>
      <author>helper </author>
      <description>&amp;gt; &amp;gt;&amp;gt; which -all toChar&lt;br&gt;
&amp;gt; 'toChar' not found.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; version -java&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ans =&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) &lt;br&gt;
Client VM  (mixed mode)&lt;br&gt;
&lt;br&gt;
I'm not sure why you wouldn't have this function.  MATLAB &lt;br&gt;
is expecting this file to exist in:&lt;br&gt;
&lt;br&gt;
&amp;lt;MATLABROOT&amp;gt;\toolbox\matlab\datatypes\@opaque\toChar.m&lt;br&gt;
&lt;br&gt;
It appears you are missing some files and/or directories.  &lt;br&gt;
All I can suggest is to reinstall MATLAB.  Also, you might &lt;br&gt;
want to update your version of Java.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Tue, 06 May 2008 14:44:04 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430585</link>
      <author>Mamata Kukreja</author>
      <description>"Mamata Kukreja" &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fvmm89$fcs$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "helper " &amp;lt;spamless@nospam.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;fvmevg$g5c$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; "helper " &amp;lt;spamless@nospam.com&amp;gt; wrote in message &amp;lt;fvmeke$p47&lt;br&gt;
&amp;gt; &amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; "Mamata Kukreja" &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; message &amp;lt;fvmadh$163$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ERROR::&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; ??? Undefined command/function 'toChar'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;     chr = toChar(opaque_array(1));&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;      disp(sprintf('%s',char(r(i))));&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Interesting.  This works on my computer.  What does the &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; output of the following command return?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; which -all toChar&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Also, what does the output of this command return?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; version -java&lt;br&gt;
&amp;gt; -------------------------------------------------------&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; which -all toChar&lt;br&gt;
&amp;gt; 'toChar' not found.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; version -java&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ans =&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM)&lt;br&gt;
Client VM&lt;br&gt;
&amp;gt;     (mixed mode)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
????&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 10:07:05 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430284</link>
      <author>Mamata Kukreja</author>
      <description>"helper " &amp;lt;spamless@nospam.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fvmevg$g5c$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "helper " &amp;lt;spamless@nospam.com&amp;gt; wrote in message &amp;lt;fvmeke$p47&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; "Mamata Kukreja" &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; &amp;gt; message &amp;lt;fvmadh$163$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ERROR::&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ??? Undefined command/function 'toChar'.&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;     chr = toChar(opaque_array(1));&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;      disp(sprintf('%s',char(r(i))));&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Interesting.  This works on my computer.  What does the &lt;br&gt;
&amp;gt; &amp;gt; output of the following command return?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; which -all toChar&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, what does the output of this command return?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; version -java&lt;br&gt;
-------------------------------------------------------&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; which -all toChar&lt;br&gt;
'toChar' not found.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; version -java&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) Client VM&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;(mixed mode)&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 08:02:56 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430270</link>
      <author>helper </author>
      <description>"helper " &amp;lt;spamless@nospam.com&amp;gt; wrote in message &amp;lt;fvmeke$p47&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Mamata Kukreja" &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; message &amp;lt;fvmadh$163$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; ERROR::&lt;br&gt;
&amp;gt; &amp;gt; ??? Undefined command/function 'toChar'.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;gt; &amp;gt;     chr = toChar(opaque_array(1));&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;gt; &amp;gt;      disp(sprintf('%s',char(r(i))));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Interesting.  This works on my computer.  What does the &lt;br&gt;
&amp;gt; output of the following command return?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; which -all toChar&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Also, what does the output of this command return?&lt;br&gt;
&lt;br&gt;
version -java&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 07:57:03 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430268</link>
      <author>helper </author>
      <description>"Mamata Kukreja" &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote in &lt;br&gt;
message &amp;lt;fvmadh$163$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt; ERROR::&lt;br&gt;
&amp;gt; ??? Undefined command/function 'toChar'.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;gt;     chr = toChar(opaque_array(1));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;gt;      disp(sprintf('%s',char(r(i))));&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Interesting.  This works on my computer.  What does the &lt;br&gt;
output of the following command return?&lt;br&gt;
&lt;br&gt;
which -all toChar&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 06:45:05 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430262</link>
      <author>Mamata Kukreja</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
message &amp;lt;fp4b3e$csc$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fp31o5$jq0$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt; &amp;gt;message &amp;lt;fp30am$ljd$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; In article &amp;lt;fp2sop$hsl$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;I want to read images from an external source eg&lt;br&gt;
mobile .. &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;how to read is clear but how do we detect the system drive&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;.. ie wen i connect the data cable .. how to detect&lt;br&gt;
whether&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; &amp;gt;its  E: or F: or watever differing from system to system.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; Your question is outside of the reach of Matlab.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;But there should be some solution to reading images from an&lt;br&gt;
&amp;gt; &amp;gt;external device .. some command or function .. if i had a&lt;br&gt;
&amp;gt; &amp;gt;digital photo keychain .. and want to insert images in it or&lt;br&gt;
&amp;gt; &amp;gt;read fromn the SD card .. ?? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Matlab is not a systems programming language. There&lt;br&gt;
doesn't have to&lt;br&gt;
&amp;gt; be a solution to any hardware problem within Matlab itself.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thought experiment: if you were to take the keychain and copy&lt;br&gt;
&amp;gt; its contents to another keychain, and then were to put&lt;br&gt;
both on the&lt;br&gt;
&amp;gt; same system, then how are you going to identify which is&lt;br&gt;
the "right"&lt;br&gt;
&amp;gt; device? Not by the contents. Therefore you are going to&lt;br&gt;
have to&lt;br&gt;
&amp;gt; examine the system information tables or make system calls&lt;br&gt;
in order&lt;br&gt;
&amp;gt; to find out the device serial numbers and compare them to&lt;br&gt;
the one&lt;br&gt;
&amp;gt; you know to be the right one. This duplication of a device&lt;br&gt;
might&lt;br&gt;
&amp;gt; sound unlikely, but consider this: on my PC, I can put a&lt;br&gt;
camera memory&lt;br&gt;
&amp;gt; stick into my printer and have it mounted as a USB drive,&lt;br&gt;
and I&lt;br&gt;
&amp;gt; can also connect up my camera to the PC and have that&lt;br&gt;
mounted as&lt;br&gt;
&amp;gt; a USB drive. Which is the right drive? As long as you are&lt;br&gt;
trying&lt;br&gt;
&amp;gt; to detect the drive automatically instead of asking the user,&lt;br&gt;
&amp;gt; you need to track device serial numbers. If you don't know&lt;br&gt;
&amp;gt; the device serial numbers ahead of time, it is logicaly&lt;br&gt;
impossible&lt;br&gt;
&amp;gt; to figure out which of several substantially similar drives is&lt;br&gt;
&amp;gt; the right one. Unless, that is, that the key to this is&lt;br&gt;
that it&lt;br&gt;
&amp;gt; must be the one that was most recently inserted or which&lt;br&gt;
must be&lt;br&gt;
&amp;gt; inserted while the program is already running.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Poking on my PC a bit, I see that possibly looking in the&lt;br&gt;
&amp;gt; registry at&lt;br&gt;
HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices&lt;br&gt;
&amp;gt; might help to find out which drives are there. There is an&lt;br&gt;
entry&lt;br&gt;
&amp;gt; for each drive letter.&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   "Man's life is but a jest,&lt;br&gt;
&amp;gt;    A dream, a shadow, bubble, air, a vapor at the best."&lt;br&gt;
&amp;gt;                                          -- George Walter&lt;br&gt;
Thornbury&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
-----------------------------------------------------------&lt;br&gt;
&lt;br&gt;
% get the list of current drives&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;import java.io.*;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f=File('');&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;r=f.listRoots;&lt;br&gt;
for i=1:numel(r)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp(sprintf('%s',char(r(i))));&lt;br&gt;
end&lt;br&gt;
% now you'd have to check each one for the&lt;br&gt;
% contents you're looking for, eg,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dir(char(r(1)));&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
ERROR::&lt;br&gt;
??? Undefined command/function 'toChar'.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chr = toChar(opaque_array(1));&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp(sprintf('%s',char(r(i))));&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 05 May 2008 06:41:04 -0400</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#430261</link>
      <author>Mamata Kukreja</author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message&lt;br&gt;
&amp;lt;fp3gts$8bc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Mamata Kukreja":&lt;br&gt;
&amp;gt; &amp;lt;SNIP looking for his/her disks...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; how to detect whether&lt;br&gt;
&amp;gt; &amp;gt; its  E: or F:&lt;br&gt;
&amp;gt; &amp;gt; or watever differing from system to system...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; one of the (imcomplete) solutions (on winos')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % get the list of current drives&lt;br&gt;
&amp;gt;      import java.io.*; &lt;br&gt;
&amp;gt;      f=File(''); &lt;br&gt;
&amp;gt;      r=f.listRoots; &lt;br&gt;
&amp;gt; for i=1:numel(r) &lt;br&gt;
&amp;gt;      disp(sprintf('%s',char(r(i)))); &lt;br&gt;
&amp;gt; end &lt;br&gt;
&amp;gt; % now you'd have to check each one for the&lt;br&gt;
&amp;gt; % contents you're looking for, eg,&lt;br&gt;
&amp;gt;      dir(char(r(1)));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ERROR: &lt;br&gt;
&lt;br&gt;
??? Undefined command/function 'toChar'.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; opaque.char at 94&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;chr = toChar(opaque_array(1));&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; untitled at 6&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp(sprintf('%s',char(r(i))));&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 15:28:46 -0500</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415327</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fp31o5$jq0$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt;message &amp;lt;fp30am$ljd$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; In article &amp;lt;fp2sop$hsl$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt;&amp;gt; Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;I want to read images from an external source eg mobile .. &lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;how to read is clear but how do we detect the system drive&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;.. ie wen i connect the data cable .. how to detect whether&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt;its  E: or F: or watever differing from system to system.&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; Your question is outside of the reach of Matlab.&lt;br&gt;
&lt;br&gt;
&amp;gt;But there should be some solution to reading images from an&lt;br&gt;
&amp;gt;external device .. some command or function .. if i had a&lt;br&gt;
&amp;gt;digital photo keychain .. and want to insert images in it or&lt;br&gt;
&amp;gt;read fromn the SD card .. ?? &lt;br&gt;
&lt;br&gt;
Matlab is not a systems programming language. There doesn't have to&lt;br&gt;
be a solution to any hardware problem within Matlab itself.&lt;br&gt;
&lt;br&gt;
Thought experiment: if you were to take the keychain and copy&lt;br&gt;
its contents to another keychain, and then were to put both on the&lt;br&gt;
same system, then how are you going to identify which is the "right"&lt;br&gt;
device? Not by the contents. Therefore you are going to have to&lt;br&gt;
examine the system information tables or make system calls in order&lt;br&gt;
to find out the device serial numbers and compare them to the one&lt;br&gt;
you know to be the right one. This duplication of a device might&lt;br&gt;
sound unlikely, but consider this: on my PC, I can put a camera memory&lt;br&gt;
stick into my printer and have it mounted as a USB drive, and I&lt;br&gt;
can also connect up my camera to the PC and have that mounted as&lt;br&gt;
a USB drive. Which is the right drive? As long as you are trying&lt;br&gt;
to detect the drive automatically instead of asking the user,&lt;br&gt;
you need to track device serial numbers. If you don't know&lt;br&gt;
the device serial numbers ahead of time, it is logicaly impossible&lt;br&gt;
to figure out which of several substantially similar drives is&lt;br&gt;
the right one. Unless, that is, that the key to this is that it&lt;br&gt;
must be the one that was most recently inserted or which must be&lt;br&gt;
inserted while the program is already running.&lt;br&gt;
&lt;br&gt;
Poking on my PC a bit, I see that possibly looking in the&lt;br&gt;
registry at HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\DosDevices&lt;br&gt;
might help to find out which drives are there. There is an entry&lt;br&gt;
for each drive letter.&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;"Man's life is but a jest,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;A dream, a shadow, bubble, air, a vapor at the best."&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- George Walter Thornbury&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 09:05:03 -0500</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415247</link>
      <author>Vihang Patil</author>
      <description>"us " &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &lt;br&gt;
&amp;lt;fp3gts$8bc$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "Mamata Kukreja":&lt;br&gt;
&amp;gt; &amp;lt;SNIP looking for his/her disks...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; how to detect whether&lt;br&gt;
&amp;gt; &amp;gt; its  E: or F:&lt;br&gt;
&amp;gt; &amp;gt; or watever differing from system to system...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; one of the (imcomplete) solutions (on winos')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; % get the list of current drives&lt;br&gt;
&amp;gt;      import java.io.*; &lt;br&gt;
&amp;gt;      f=File(''); &lt;br&gt;
&amp;gt;      r=f.listRoots; &lt;br&gt;
&amp;gt; for i=1:numel(r) &lt;br&gt;
&amp;gt;      disp(sprintf('%s',char(r(i)))); &lt;br&gt;
&amp;gt; end &lt;br&gt;
&amp;gt; % now you'd have to check each one for the&lt;br&gt;
&amp;gt; % contents you're looking for, eg,&lt;br&gt;
&amp;gt;      dir(char(r(1)));&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
There is a freeware called USBDeview found here&lt;br&gt;
&lt;a href="http://www.nirsoft.net/utils/usb_devices_view.html"&gt;http://www.nirsoft.net/utils/usb_devices_view.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
This freeware looks for all USB devices on your PC. It &lt;br&gt;
also has command interface, where you can populate the &lt;br&gt;
results in a text, excel , xml file etc, and then read the &lt;br&gt;
file through Matlab&lt;br&gt;
Lot of R&amp;D would be required at your end.&lt;br&gt;
HTH&lt;br&gt;
Vihang&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 08:02:04 -0500</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415240</link>
      <author>us</author>
      <description>"Mamata Kukreja":&lt;br&gt;
&amp;lt;SNIP looking for his/her disks...&lt;br&gt;
&lt;br&gt;
&amp;gt; how to detect whether&lt;br&gt;
&amp;gt; its  E: or F:&lt;br&gt;
&amp;gt; or watever differing from system to system...&lt;br&gt;
&lt;br&gt;
one of the (imcomplete) solutions (on winos')&lt;br&gt;
&lt;br&gt;
% get the list of current drives&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;import java.io.*; &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;f=File(''); &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;r=f.listRoots; &lt;br&gt;
for i=1:numel(r) &lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;disp(sprintf('%s',char(r(i)))); &lt;br&gt;
end &lt;br&gt;
% now you'd have to check each one for the&lt;br&gt;
% contents you're looking for, eg,&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dir(char(r(1)));&lt;br&gt;
&lt;br&gt;
us&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 03:43:01 -0500</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415224</link>
      <author>Mamata Kukreja</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
message &amp;lt;fp30am$ljd$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;fp2sop$hsl$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;I want to read images from an external source eg mobile .. &lt;br&gt;
&amp;gt; &amp;gt;how to read is clear but how do we detect the system drive&lt;br&gt;
&amp;gt; &amp;gt;.. ie wen i connect the data cable .. how to detect whether&lt;br&gt;
&amp;gt; &amp;gt;its  E: or F: or watever differing from system to system.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;Configuring the USB port ??&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Your question is outside of the reach of Matlab. Matlab does&lt;br&gt;
&amp;gt; not recognize "system drives". (Matlab currently runs on&lt;br&gt;
&amp;gt; four operating systems, three of which do not have such a&lt;br&gt;
&amp;gt; thing as a "system drive".)&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   "Pray do not take the pains / To set me right. /&lt;br&gt;
&amp;gt;    In vain my faults ye quote; / I wrote as others wrote /&lt;br&gt;
&amp;gt;    On Sunium's hight."                      -- Walter&lt;br&gt;
Savage Landor&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
But there should be some solution to reading images from an&lt;br&gt;
external device .. some command or function .. if i had a&lt;br&gt;
digital photo keychain .. and want to insert images in it or&lt;br&gt;
read fromn the SD card .. ?? &lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 03:18:46 -0500</pubDate>
      <title>Re: Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415218</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;fp2sop$hsl$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
Mamata Kukreja &amp;lt;mamata_kukreja@yahoo.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;I want to read images from an external source eg mobile .. &lt;br&gt;
&amp;gt;how to read is clear but how do we detect the system drive&lt;br&gt;
&amp;gt;.. ie wen i connect the data cable .. how to detect whether&lt;br&gt;
&amp;gt;its  E: or F: or watever differing from system to system.&lt;br&gt;
&lt;br&gt;
&amp;gt;Configuring the USB port ??&lt;br&gt;
&lt;br&gt;
Your question is outside of the reach of Matlab. Matlab does&lt;br&gt;
not recognize "system drives". (Matlab currently runs on&lt;br&gt;
four operating systems, three of which do not have such a&lt;br&gt;
thing as a "system drive".)&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;"Pray do not take the pains / To set me right. /&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;In vain my faults ye quote; / I wrote as others wrote /&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;On Sunium's hight."                      -- Walter Savage Landor&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 15 Feb 2008 02:18:01 -0500</pubDate>
      <title>Detecting System Drive ( urgent help )</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/163823#415211</link>
      <author>Mamata Kukreja</author>
      <description>Hello,&lt;br&gt;
&lt;br&gt;
I want to read images from an external source eg mobile .. &lt;br&gt;
how to read is clear but how do we detect the system drive&lt;br&gt;
.. ie wen i connect the data cable .. how to detect whether&lt;br&gt;
its  E: or F: or watever differing from system to system.&lt;br&gt;
&lt;br&gt;
Configuring the USB port ??&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
