MATLAB Answers

Translated by

このページのコンテンツは英語から自動翻訳されています。自動翻訳をオフにする場合は「<a class="turn_off_mt" href="#">ここ</a>」をクリックしてください。

0

How to run no longer supported P-Code for newer version of Matlab?

Adji Pramudito Arioputro さんによって質問されました 2018 年 7 月 30 日
最新アクティビティ Titus Edelhofer
さんによって 回答されました 2018 年 7 月 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 件のコメント

サインイン to comment.

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 件のコメント

サインイン to comment.



Translated by