No BSD License  

Highlights from
Reverse Evaluation

4.0

4.0 | 1 rating Rate this file 0 Downloads (last 30 days) File Size: 3.92 KB File ID: #5781

Reverse Evaluation

by AJ Johnson

 

25 Aug 2004 (Updated 26 Aug 2004)

Create a string that, when evaluated, returns the original value.

| Watch this File

File Information
Description

%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.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
27 Aug 2004 Pavel Puchkarev

cannot handle function hanldes as fields
other than that, great!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
eval AJ Johnson 22 Oct 2008 07:30:43
reverse AJ Johnson 22 Oct 2008 07:30:43
engineer AJ Johnson 22 Oct 2008 07:30:43
string AJ Johnson 22 Oct 2008 07:30:43
equal AJ Johnson 22 Oct 2008 07:30:43

Contact us at files@mathworks.com