From: Abhishek on 19 Jul 2010 11:03 after using textscan(fid,'%s','delimiter','=') i am getting 'vout' 'x;' 'vin' 'z;' how to remove the (') from the output
From: Joseph on 20 Jul 2010 14:45 "Abhishek " <abhi14jan(a)yahoo.com> wrote in message <i21oha$t02$1(a)fred.mathworks.com>... > after using textscan(fid,'%s','delimiter','=') i am getting > 'vout' > 'x;' > 'vin' > 'z;' > how to remove the (') from the output Textscan's output is a cell. So, assuming dude = textscan(fid,'%s','delimiter','='); then, disp(dude{1}) vout Basically, the single quote is there to let you know the data is stored as a character string.
From: Jan Simon on 20 Jul 2010 19:20 Dear Abhishek, > after using textscan(fid,'%s','delimiter','=') i am getting > 'vout' > 'x;' > 'vin' > 'z;' > how to remove the (') from the output The quotes appear in the output to the command window, but they are not part of your imported data. You can avoid the quotes e.g. by using FPRINTF: C = textscan(fid,'%s','delimiter','='); fprintf('%s\n', C{:}); Jan
|
Pages: 1 Prev: Axis Properties Next: modeling MC-CDMA using MAtlab to improve TCP performance |