Thread Subject: Interesting .txt file problem PLEASE HELP

Subject: Interesting .txt file problem PLEASE HELP

From: Matt H

Date: 9 Feb, 2010 03:59:06

Message: 1 of 2

Hi,
I have been searching this forum for a while now and I cant seem to find the answer to my problem. So whenever I run the .m file, I make it so that it creates a diary of a .txt file. However whenever I open that .txt file it creates, it always has this extraneous warning messages that I can't seem to get rid of.
Here's what it looks like.

"%Find the angle for the viewers sitting at distances of 30, 45, 60, 75 and
%90 feet from the screen.
x=[30 45 60 75 90]
x =
    30 45 60 75 90
atand((24-(x*tand(8)-6))./x)+atand((x*tand(8)-6)./x)
ans =
   37.2750 28.1630 22.0930 18.0097 15.1373
uiopen('C:\Users\mhong12\Documents\MATLAB\MATLAB_win\EngrMath\Gilat\c4\g113x02\g113x02.asv',1)
uiopen('C:\Users\mhong12\Documents\MATLAB\MATLAB_win\EngrMath\Gilat\c4\g113x02\g113x02.txt',1)
% Modify expression to add input arguments.
% Example:
% a = [1 2 3; 4 5 6];
% foo(a);

g113x02
delete g113x02.txt; diary g113x02.txt
{Warning: File not found or permission denied}
> In <a href="matlab: opentoline('C:\Users\mhong12\Documents\MATLAB\MATLAB_win\EngrMath\Gilat\c4\g113x02\g113x02.m',1,1)">g113x02 at 1</a>"

What do you guys think is the problem? It would be great if this problem can be fixed.
Thanks in advance!

Subject: Interesting .txt file problem PLEASE HELP

From: ImageAnalyst

Date: 9 Feb, 2010 04:10:39

Message: 2 of 2

Well, you're trying to execute the command "g113x02" which means that
you're supposed to have an m-file called that (since it's not a built-
in MATLAB function).

Do you actually HAVE that m-file, g113x02.m, or not??? I think
apparently not.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com