From: Eryn on
Hi All,
I would like to call some info from RDF file to be an input for my *.m file like below:
-i and j are objects that have real height (Mi and Mj) while hi and hj are height in an image which have been calculated earlier. I need to get the Mi and Mj from the RDF that I've developed as input for this segment. How can I call them from the Matlab?.

fprintf(file1,'\n\nMAGNITUDE OF HEIGHT: \n\n');
for i=1:N-1
for j=i+1:N
%magnitude
if ((M(i)>0 && M(j)>0) && (2*(h(j)/h(i))>3*(M(j)/M(i))));
fprintf (file1, '%s is NEARER THAN %s, and %s is FURTHER AWAY than %s.', R{j}, R{i}, R{i}, R{j});
%if ((M(i)>0 && M(j)>0) && ((2*(h(i)/h(j))>3*(M(i)/M(j))) || (2*(h(j)/h(i))>3*(M(j)/M(i)))));
end;
if ((M(i)>0 && M(j)>0) && (2*(h(i)/h(j))>3*(M(i)/M(j))));
fprintf (file1, '%s is NEARER THAN %s, and %s is FURTHER AWAY than %s.', R{i}, R{j}, R{j}, R{i});
end;
end;

Really need some help here. Thank you in advance.
-Eryn