Reverse Evaluation

版本 1.0.0.0 (1.5 KB) 作者: AJ Johnson
Create a string that, when evaluated, returns the original value.
1.0K 次下载
更新时间 2004/8/26

无许可证

%REVERSE_EVAL - Created a string, that when evaluated, produces original construct.
% REVERSE_EVAL(V) returns a string which when evaluated using EVAL, is
% identical to V. Example:
% v = load('-mat','my_figure.fig');
% e = reverse_eval(v);
% isequal(v,eval(e))
% should return 1. Note that and NaN values within V will cause isequal
% to return 0, but the evaluation will still be correct.
% This currently does not support arrays whose number of dimensions are
% greater than 2, or objects.
%
% See also FIG2M.

引用格式

AJ Johnson (2024). Reverse Evaluation (https://www.mathworks.com/matlabcentral/fileexchange/5781-reverse-evaluation), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0