hi all
Can you help provide solutions
I tried to call data from txt file
disp(input('input, press enter'))
[FileName.PathName]=uigetfile(('*.txt'), 'browser file')
fileToRead=fullfile(PathName,FileName)
propil=importdata(fileToRead)
FileName =
PathName: 'prop.txt'
??? Undefined function or variable 'PathName'.
Error in ==> input_data_t3d at 4
fileToRead=fullfile(PathName,FileName)
|
|
0
|
|
|
|
Reply
|
wahyoe
|
3/24/2011 5:04:04 AM |
|
On 3/23/2011 10:04 PM, wahyoe Unggul wrote:
> hi all
> Can you help provide solutions
> I tried to call data from txt file
>
> disp(input('input, press enter'))
> [FileName.PathName]=uigetfile(('*.txt'), 'browser file')
> fileToRead=fullfile(PathName,FileName)
> propil=importdata(fileToRead)
>
>
>
> FileName =
>
> PathName: 'prop.txt'
>
> ??? Undefined function or variable 'PathName'.
>
> Error in ==> input_data_t3d at 4
> fileToRead=fullfile(PathName,FileName)
Change the '.' to ',' in this line between the FIleName and PathName
[FileName.PathName]=uigetfile(('*.txt'), 'browser file')
--Nasser
|
|
0
|
|
|
|
Reply
|
Nasser
|
3/24/2011 5:17:14 AM
|
|
"Nasser M. Abbasi" <nma@12000.org> wrote in message <imek4v$l3o$1@speranza.aioe.org>...
> On 3/23/2011 10:04 PM, wahyoe Unggul wrote:
> > hi all
> > Can you help provide solutions
> > I tried to call data from txt file
> >
> > disp(input('input, press enter'))
> > [FileName.PathName]=uigetfile(('*.txt'), 'browser file')
> > fileToRead=fullfile(PathName,FileName)
> > propil=importdata(fileToRead)
> >
> >
> >
> > FileName =
> >
> > PathName: 'prop.txt'
> >
> > ??? Undefined function or variable 'PathName'.
> >
> > Error in ==> input_data_t3d at 4
> > fileToRead=fullfile(PathName,FileName)
>
>
> Change the '.' to ',' in this line between the FIleName and PathName
>
>
> [FileName.PathName]=uigetfile(('*.txt'), 'browser file')
hai nasser
thanks Thank you very much
>
>
> --Nasser
|
|
0
|
|
|
|
Reply
|
wahyoe
|
3/24/2011 5:35:20 AM
|
|
hai nasser
why at the time of data occur as a result used below
C:\Documents and Settings\W@hyOe\My Documents\MATLAB\eploitasi\data input\prop.txt
prop =
1.0e+005 *
0.0000 2.1000 0.0045 0 0.0000
0.0000 2.2000 0.0080 0 0.0000
0.0000 2.6000 0.0050 0 0.0000
0.0000 2.8000 0.0070 0 0.0000
ans =
prop.txt
>> C=prop'
??? Undefined function or variable 'prop'.
|
|
0
|
|
|
|
Reply
|
wahyoe
|
3/24/2011 6:23:04 AM
|
|
On 3/23/2011 11:23 PM, wahyoe Unggul wrote:
> hai nasser
> why at the time of data occur as a result used below
>
> C:\Documents and Settings\W@hyOe\My Documents\MATLAB\eploitasi\data input\prop.txt
>
>
> prop =
>
> 1.0e+005 *
>
> 0.0000 2.1000 0.0045 0 0.0000
> 0.0000 2.2000 0.0080 0 0.0000
> 0.0000 2.6000 0.0050 0 0.0000
> 0.0000 2.8000 0.0070 0 0.0000
>
>
> ans =
>
> prop.txt
>
>>> C=prop'
> ??? Undefined function or variable 'prop'.
I do not understand.
PLease post COMPLETE working code, from the start to the end. Not
just a fragment.
--Nasser
|
|
0
|
|
|
|
Reply
|
Nasser
|
3/24/2011 6:39:06 AM
|
|
data file txt
1 2.10e5 450 0 7.85e-5
2 2.20e5 800 0 7.85e-5
3 2.60e5 500 0 7.85e-5
4 2.80e5 700 0 7.85e-5
function [data,f2r,prop,prop2] = input_data_t3d
disp(input('input, press enter'))
[data,directory]=uigetfile({'*.txt';'*.dat';'*.mat';'*.rtf';'*.*'},'File Selector')
f2r=fullfile(directory,data)
prop=(importdata(f2r))
output
input, press enter
data =
coord.txt
directory =
C:\Documents and Settings\W@hyOe\My Documents\MATLAB\eploitasi\data input\
f2r =
C:\Documents and Settings\W@hyOe\My Documents\MATLAB\eploitasi\data input\coord.txt
prop =
1.0e+003 *
0.0010 0 0 4.2426
0.0020 4.2426 0 4.2426
0.0030 4.2426 0 0
0.0040 0 0 0
0.0050 2.1213 4.0000 2.1213
if data is "prop" I use for subsequent calculations,
then the variable is not recognized
>> C=prop.*2
??? Undefined function or variable 'prop'.
|
|
0
|
|
|
|
Reply
|
wahyoe
|
3/24/2011 7:10:14 AM
|
|
|
5 Replies
142 Views
(page loaded in 0.089 seconds)
Similiar Articles: why i m getting error...,?? Undefined function or variable - comp ...comp.soft-sys.matlab 190337 articles. 390 followers. 2 Replies 151 Views (0.125 seconds) Tweet. Similiar Articles: Undefined function or variable - comp.soft-sys.matlabI press the runbutton at the top of the editor and it always says Undefined function or variable 'hello'. which hallo says: D:\directory\hallo.m % Has no license ... "undefined function or variable "z"" - comp.soft-sys.matlab ...Undefined function or variable - comp.soft-sys.matlab I press the runbutton at the top of the editor and it always says Undefined function or variable 'hello'. which hallo ... solve - Undefined function or variable 'I' - comp.soft-sys.matlab ...variance x n is called? - comp.soft-sys.matlab solve - Undefined function or variable 'I' - comp.soft-sys.matlab ... Dear all, I am trying to solve a simple one variable ... Undefined function or method in compiled program - but function ...... and similar) problems when running my compiled program: Undefined function ... xxx\mcrCache7.14\Untitl5\Untitled1 -- and this on stderr -- Undefined function or variable ... Undefined XLIB Name - comp.sys.hp48Undefined function or variable - comp.soft-sys.matlab Undefined XLIB Name - comp.sys.hp48 Undefined function or method in compiled program - but ... the ... Undefined function or method 'atan2' for input arguments of type ...Undefined function or method 'atan2' for input arguments of ... distribution as a variable of type 'sym ... variable ... problem? - comp.databases.mysql Undefined function ... A "does global variable exist" function - comp.lang.javascript ...Undefined function or variable - comp.soft-sys.matlab I keep getting "??? Undefined function or variable" when I run the function calc_RSI. I have used "dir" and "path ... uicontrol callback - comp.soft-sys.matlabi want to make GUI using uicontrol that adds , subtracts , multiplies , divides two numbers , but it give me Undefined function or variable 'pushbut... Detecting if a variable is defined - comp.soft-sys.matlab ...Undefined function or variable - comp ... Detecting if a variable is defined - comp.soft-sys.matlab ..... end > > The function 'exists' does not detect this, it simply ... ??? Undefined function or variable - Newsreader - MATLAB CentralI am going mad! I keep getting "??? Undefined function or variable" when I run the function calc_RSI. I have used "dir" and "path" and the file exists in both? Matlab: Undefined function or variable - programming.itags.orgprogramming.itags.org: Matlab question: Undefined function or variable, created at:Sat, 26 Apr ... pushbuttons:function pushbuttonSTART_Callback(...)[filename, pathname ... 7/28/2012 5:19:57 AM
|