Problem of "Undefined function or variable "fcn"." in RNT

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
limaolin
Posts: 45
Joined: Wed Nov 07, 2012 5:48 pm
Location: Dalian University

Problem of "Undefined function or variable "fcn"." in RNT

#1 Unread post by limaolin »

Hi:
I use RNT tools to make files for rooms. When I use the starup.m file to add the path, there are some errors:

Undefined function or variable "fcn".

Error in mexcdf (line 122)
feval(fcn, varargin{:});

Error in ncquiet (line 14)
mexcdf('setopts', 0)

Error in startup (line 57)
ncquiet

My matlab version is 8.1.0.604 (R2013a). How can I solve the problem. Which version is usefull.
Thanks a lot.

rtopper
Posts: 24
Joined: Fri Jul 04, 2014 2:32 pm
Location: MARUM, University of Bremen

Re: Problem of "Undefined function or variable "fcn"." in RN

#2 Unread post by rtopper »

Check point 9 in the MexCDF FAQ:
9. Why do I get Undefined function 'fcn' when trying to use ncmex?

You are trying to use the NetCDF Toolbox, which I do not support. See the previous three items.
http://mexcdf.sourceforge.net/faq.php

limaolin
Posts: 45
Joined: Wed Nov 07, 2012 5:48 pm
Location: Dalian University

Re: Problem of "Undefined function or variable "fcn"." in RN

#3 Unread post by limaolin »

Thanks for your reply, but I can't open the http://mexcdf.sourceforge.net/faq.php.

Can you post the content to me?

rtopper
Posts: 24
Joined: Fri Jul 04, 2014 2:32 pm
Location: MARUM, University of Bremen

Re: Problem of "Undefined function or variable "fcn"." in RN

#4 Unread post by rtopper »

Sorry for the delay. Here is the relevant part of the FAQ:
6. What about the NetCDF Toolbox?

I did not write it and have not supported it since 2007. I continually get asked about it, so if you really need it badly, you can get a version here on the condition that you never ever ask me about it again.

7.Where is NCLOAD?

It's part of the NetCDF Toolbox, which I do not support. See the item above.

8.Why to I get Undefined function 'netcdf'

For example...

>> nc = netcdf('ocean_his.nc')
Undefined function 'netcdf' for input arguments of type 'char'.

You are trying to use the NetCDF Toolbox, which I do not support. See the previous two items.

9.Why do I get Undefined function 'fcn' when trying to use ncmex?

You are trying to use the NetCDF Toolbox, which I do not support. See the previous three items.

limaolin
Posts: 45
Joined: Wed Nov 07, 2012 5:48 pm
Location: Dalian University

Re: Problem of "Undefined function or variable "fcn"." in RN

#5 Unread post by limaolin »

Thanks for your reply.

The NetCDF Toolbox have not been surported. But how can I to use it in matlab2013a.

rtopper
Posts: 24
Joined: Fri Jul 04, 2014 2:32 pm
Location: MARUM, University of Bremen

Re: Problem of "Undefined function or variable "fcn"." in RN

#6 Unread post by rtopper »

Instructions and answers to all your questions related to the nctoolbox are here:
http://nctoolbox.github.io/nctoolbox

limaolin
Posts: 45
Joined: Wed Nov 07, 2012 5:48 pm
Location: Dalian University

Re: Problem of "Undefined function or variable "fcn"." in RN

#7 Unread post by limaolin »

Thanks for your reply. I Copy the 'mexcdf folder' from Roms_Agrif/Roms_tools_v3.1.1 to 'RNT/matlib'. It works.

carlosag
Posts: 24
Joined: Thu Sep 30, 2021 12:08 pm
Location: University of Iceland

Re: Problem of "Undefined function or variable "fcn"." in RNT

#8 Unread post by carlosag »

Hi @limaolin, I did the same thing and it does not work for me. I downloaded the files from https://www.croco-ocean.org/download/utilities/
Is that the same you did?
I am using matlab 2019b.
Please let me know if you have any suggestion.

Post Reply