How to run no longer supported P-Code for newer version of Matlab?
15 次查看(过去 30 天)
显示 更早的评论
I've recently downloaded a toolbox that has a variety of functions which are divided into .m files and .p files.
A demo function was available to introduce the user on the different functions as well as understanding the output. However once I run it, I receive this failure message in the Matlab console.
The P-code file C:\Users\..\xml_toolbox\xml_format.p was generated prior to MATLAB version 7.5 (R2007b) and is no longer
supported. Use pcode to regenerate the file using MATLAB R2007b or later.
And if I open any of the available .m files, they only show these as source code:
%XML_FORMAT Convert a Matlab variable or struct into an XML string.
%
% SYNTAX: xmlstr = xml_format(v, [attswitch], [name] )
%
% INPUT
% v Matlab variable type "struct", "char", "double"(numeric),
% "complex", "sparse", "cell", or "logical"(boolean)
% attswitch optional, default='on':
% 'on' writes header attributes idx,size,type for
% identification by Matlab when parsing in XML later
% 'off' writes "plain" XML without header attributes
% name optional, give root element a specific name, eg. 'project'
%
% OUTPUT
% xmlstr string, containing XML description of variable V
%
% SEE ALSO
% xml_help, xml_formatany, xml_parse, xml_load, xml_save, (xmlread, xmlwrite)
% Copyright (c) 2005 Geodise Project, University of Southampton
% XML Toolbox for Matlab, http://www.geodise.org
% Author: Dr Marc Molinari <m.molinari@soton.ac.uk>
% $Revision: 1.11 $ $Date: 2005/08/26 09:41:37 $
I cannot regenerate the function as P-code by using this. Is there any way to run the available .p file with the current version of Matlab?
0 个评论
回答(1 个)
Titus Edelhofer
2018-7-30
Hi,
unfortunately no. You will need to ask the author to re-create the p-coded file in a newer version of MATLAB.
Titus
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!