??? Undefined function or variable 'PathName'.
Can you help provide solutions
I tried to call data from txt file
disp(input('input, press enter'))
[FileName.PathName]=uigetfile(('*.txt'), 'browser file')
??? Undefined function or variable 'PathName'.
Error in ==> input_data_t3d at 4
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
...Undefined variable or function Dist might refer to the function dist.
I am using GA and anonymous function to solve my problem. However, i couldn't fix the error. Can anyone tell me what i did wrong?
Here is the error:
??? Undefined variable or function Dist might refer to the
Error in ==> Fitness at 19
OBJ = sum(sum(Dist))+sum(sum(Fix));
Error in ==> @(x)Fitness(x,ct,w,p,f)
This is my Objective function:
function OBJ = Fitness(x,ct,w,p,f)
OBJ = sum(sum...Undefined variable or function error even though variable is defined
Hi guys I'm working on my final year project and At the moment i'm writing a code that it supposes to record 10 seconds of video into an avi file when something happens in the video. My problem is that even though i defined the AVI file, it gives me the following error:
??? Undefined function or variable "mov".
Error in ==> ColorForegroundSegmentationB at 142
mov = close(mov)
My piece of code looks something like this:
area = bwarea(idi)
for i= 1:p
if area >= 20000 && area <= 40000
disp('Human object in sitting position')
filename=['...??? Undefined function or variable
I 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?
> I 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?
Case mismatch, perhaps??? ML is case-sensitive in matching variable and
"Lommen " <firstname.lastname@example.org> wrote in message <...Variable is undefined: Actually a function
Still working on the same project as when I last posted an inquiry (the
relevant detail would be that I did not write this code). I'm getting
the following error at runtime:
% Variable is undefined: CALCULATE_DECAY_RATE.
% Execution halted at: PHYSIOLOGY::MTT
% ESTIMATE_AIF_MRTM 283 ~/Developer/DCE-MRI
% ANALYZE_ROI_DATA_EVENT 582 ~/Developer/DCE-MRI
I've checked through PHYSIOLOGY::MTT, and it does...undefined function or variable matlabrc
when I try to create a stand alone application by compiling my m.file
(mcc) everything works fine.When I run it in another computer which
has no matlab,the following error accured.
Unable to find java library:
After confirming the error it appears in the command window:
Name is nonexistent or not a directory
undefined function or variable matlabrc
I am using Matlab 7.0.1 and the m.file creates a gui and uses
ToolBox(wavelet function) functions. Does anybody knows why...undefined function or variable #5
I get 'undefined function or variable' error with any of my files (which I created myself, not toolbox files). Any idea what is wrong and how to fix it?
> I get 'undefined function or variable' error with any of my files
> (which I created myself, not toolbox files). Any idea what is wrong
> and how to fix it? ...
More than likely you've stored them in a directory not in the Matlab
Alternatively, you've not named them properly--
and/or look in online documentation under "Names - Funct...Undefined function or variable
Matlab has gone mad! It won't accept any declaration other than predeclared matlab functions (say, fft). Almost any other function call returns 'Undefined function or method bla bla'.
I know you'll think that I don't have the path defined correctly, or that my function is not defined properly, but this is not the case. I am trying to call functions or script located in the directory i am currently browsing.
Tab autocompletes their name when I start typing the first few letters.
But as soon as I press enter, matlab gets confused. I have been using matlab for years, ne...undefined function or variable #8
I am new to matlab and got stuck with a problem---- undefined function or variable b.
could any of you help me with it? thank you very much.
my function is as follows;
function [ p ] = RT( a )
%UNTITLED2 1-dimension rapid transformation
% Detailed explanation goes here
b(i) = a(i) | a(i+n/2);
c(i) = xor(a(i),~a(i+n/2));
p = [b,c];
I have a feeling that the problem may be that b=RT(b) is not correct,but I am not sure and have no idea how to fix it. thank you again!
Thank you ...Undefined function or variable 392478
I've got a big problem.
I'd like to use a MATLAB toolbox. All requirements are installed but it won't run.
I open the main .m file (let's say it's called 'hello.m'). I 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 available
And it's not even just that file, every file I create in that folder even if it contains just
A = 2
or s.th. like that won't work.
I added the Folder to the path, but the problem remains. O...Inline Function and undefined variable
I am quite new to Matlab and strugglin on a daily basis with several problems in Matlab. But this problem remains now for a long time unsolved:
Ihave defined the following function:
A is a 7x7 Matrix which is defined in the Workspace. When I now try to test this function with feval e.g.:
I get the the folllowing errors:
??? Error using ==> inlineeval at 15
Error in inline expression ==> det(A-x*eye(7))
Undefined function or variable 'A'.
Error in ==> inline.feval ...problem with: ??? Undefined function or variable
I have a m.file and the code works perfectly if I type it in the command window. Whenever I try to run the script I get the error message:
??? Undefined function or variable.
My working directory containing the m.file plus data is included in the Matlab Path, so this cannot be the problem. Does anyone know what might cause the problem?
"Hedwig Schnee" <email@example.com> wrote in message <firstname.lastname@example.org>...
> I have a m.file and the code works perfectly if I type it in the command window. Whenever I try to run the script I ...Undefined function or variable 415817
I am trying to write some data to a file but I keep getting the following message;
??? Undefined function or variable 'lot'.
When I declare the variable it is in a script.
However, after getting the error message, if I type 'lot' in the command prompt the variable is recognised.
Any ideas as to why this would be happening?
"David " <email@example.com> wrote in message <firstname.lastname@example.org>...
> I am trying to write some data to a file but I keep getting the following message;
> ??? Undefined function or variable 'lot&...Undefined function or variable #6
Can anyone help please?
I am working with the Monte Carlo output .2pt extension files. There is a function which can read those files in Matlab.
"[data,seg] = loadMC2pt(filename);" but when I substitute the filename with my output file (s1), the program gives an error: "Undefined function or variable 's1'". All the paths are set.
Irina Schelkanova <email@example.com> wrote in message <firstname.lastname@example.org>...
> Can anyone help please?
> I am ...Undefined function or variable
after one week working with a script and function and getting result of running, just today
it didn't work well. I just got this error:
"Undefined function or method 'MSVmea' for input arguments of type 'double'
while it was working well before. I was trying to get into iterations in lsqnonlin optimization which
this happened to the program. it seems it can not find the path of function which I tried to
locate those in the same directory. thats frustrating now for me as it was almost done for me before.
any help will be appreciated
"Maria " <mr7...error : undefined variable or function
I am defining the function as follows:
function data = spikedata(filename)
and the rest of the function is as follows:
f = fopen(filename,'r');
then when i evaluate from the f = fopen(filename,'r') section. it
gives me the following error
Undefined function or variable filename
email@example.com (Bala) wrote in news:mhwfanilnlxx@legacy:
> I am defining the function as follows:
> function data = spikedata(filename)
> and the rest of the function is as follows:
> f = fopen(filename,'r');
&...Undefined function or variable #4
I am trying to run a very simple function in Matlab that I have named
get_max. When I type ls or dir, I can see the function file in the
directory listing and I can open the file in the ''Current
directory'' window, but when I type get_max in the command window, I
keep getting the ''Undefined function or variable'' message. I've
tried creating a new file and copying the code to it, but it still
won't run. I really don't understand what's going on here... Thanks
for your help.
On Mon, 26 Feb 2007 17:28:20 -0500, Phil wrote:
&...??? Undefined function or variable #3
I'm trying to use the statistics toolbox but am so far
unable to get a single function to work. I have confirmed
that I have a license for the toolbox and all the m-files
are installed on my computer. The toolbox is also specified
in my Matlab path /Applications/MATLAB_R2007b/toolbox/stats,
and I have tried calling the function directly from within
the toolbox directory, all to no avail. For example:
>> cd toolbox/stats/
>> nu = 1:6;
>> x = nu;
>> y = chi2pdf(x,nu)
??? Undefined function or method 'chi2pdf' for input
arguments of type 'double'.
Any...Undefined function or variable #3
I get into trouble using a function 'apply'
>> which apply
So Matlab knows which 'apply' I am talking about.
But, here is the problem:
??? Undefined function or variable 'apply'.
Why would this happen? Any suggestions? Is it because it resides in a
very special directory with a '@'?
On Fri, 21 Jul 2006 09:31:43 -0700, firstname.lastname@example.org wrote:
> I get into trouble using a function 'apply'
>>> which apply
>...Undefined function or variable error
When the code below is run, it complains about
??? Undefined function or variable 'q'.
What could be causing this?
q = input('Enter the value of epsilon > ');
h = 0.01;
p=input('Enter the value for p > ');
final_time=input('Enter the value for maximum time > ');
final = final_time*2/h;
%Solve the equations on the characteristic
[eta,b_b]=...undefine function or variable transp_flag!
I did something like (see "doc lsqr" too):
x = lsqr(@afun,b);
function y = afun(x,transp_flag)
y = A'*x;
y = A*x;
However, this time it says undefined transp_flag. What wrong did I do?
...Matlab error: undefined function or variable
Here is the problem: when I run the function in epremium.m (inside
gmm.m), I get the following error message: "??? Undefined function or
Apparently matlab cannot recognize the data rf that is defined in
another workfile (asset.m). I tried to load the data exactly as it is
loaded in asset.m: "allret=Y.allreturns", but matlab does not
recognize this either.
Can anyone please help me out?
Here is part of the content of asset.m:
function [X,P,ActiveBits] = asset(Atype,Y)
allret = Y.allreturns;
rf = allret(:,1);
Here is the content o...Error Msg: undefined function or variable
Matlab was working but now....
The m files open with lines 1,5 and 13 set as
breakpoints. I unset them. Type filename
into command window>>>error message 'undefined
function or variable'. I have tried uninstalling
and reinstalling Matlab 6.5. Help!
In article <email@example.com>,
elaine chan <firstname.lastname@example.org> wrote:
>Matlab was working but now....
>The m files open with lines 1,5 and 13 set as
>breakpoints. I unset them. Type filename
>into command window>>>error message 'undefined
>function or vari...Undefined function or variable #2 851683
all my functions don't work anymore. I try to run them and i keep on
Undefined function or variable .i restarted the PC without lack. any
I updated the cash and still none of my functions work. when I put
what I see all the functions but i can't execute any without the
"Undefined function or variable" error. I am still puzzled.Any help
> all my functions don't work anymore. I try to run them and i keep
> Undefined function or variable .i restarted the PC without la...??? Undefined function or variable #2 846559
My matlab does something weird.
M-files in the current directory C:\test
??? Undefined function or variable 'Test'
>> help Test
Following is the Test.m
% function Test
I can not understand what happens. Is this the known bug of the matlab
On all other directories, matlab does not work.
I made a simple Test directory and a file shown above.
Can you tell me how can I fix this ?
The Computer is not on the network. Is this can be a reason of this