<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/most_recent_feed</link>
    <title>MATLAB Central Newsreader Recent Posts</title>
    <description>Most Recent Posts</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2010 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 31 Jul 2010 02:05:04 -0400</pubDate>
      <title>how to generate a random number ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288219#767327</link>
      <author>Priom Rahman</author>
      <description>Hi guys, just wondering if someone could help me work out the code to generate a random number between 0 and 1 ? with any number having an equal likelyhood of being generated ?</description>
    </item>
    <item>
      <pubDate>Sat, 31 Jul 2010 01:23:04 -0400</pubDate>
      <title>Re: Line segment intersection?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288171#767326</link>
      <author>Steve </author>
      <description>ImageAnalyst &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;8887b212-9387-4b54-af5f-6f8e388aa410@j8g2000yqd.googlegroups.com&amp;gt;...&lt;br&gt;
&amp;gt; Are you (1) going to place all the blue lines first and then check&lt;br&gt;
&amp;gt; (like your example), or are you (2) going to place one line at each&lt;br&gt;
&amp;gt; iteration of a loop and then check against that one line (kind of like&lt;br&gt;
&amp;gt; your explanation that mentioned a loop) and then break out of the loop&lt;br&gt;
&amp;gt; if the latest line is within the radius?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A dumb brute force way is to write the lines into a 2D matrix (image)&lt;br&gt;
&amp;gt; and then use the Euclidean Distance Transform (bwdist() which is in&lt;br&gt;
&amp;gt; the Image Processing Toolbox), but I bet there's a more clever&lt;br&gt;
&amp;gt; analytical method.&lt;br&gt;
&lt;br&gt;
Thanks for your answer. &lt;br&gt;
Every line is growing over time and i want to check which lines are colliding and stop the growth of these lines. Like in my example.&lt;br&gt;
&lt;br&gt;
I'm using such a 2D matrix at the moment, but when the lines get very long this matrix gets very huge, sometimes more than the allowed variable size allowed. &lt;br&gt;
&lt;br&gt;
So I'm looking for an analytical way. This is really tricky...</description>
    </item>
    <item>
      <pubDate>Sat, 31 Jul 2010 01:13:02 -0400</pubDate>
      <title>Re: Line segment intersection?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288171#767325</link>
      <author>ImageAnalyst</author>
      <description>Are you (1) going to place all the blue lines first and then check&lt;br&gt;
(like your example), or are you (2) going to place one line at each&lt;br&gt;
iteration of a loop and then check against that one line (kind of like&lt;br&gt;
your explanation that mentioned a loop) and then break out of the loop&lt;br&gt;
if the latest line is within the radius?&lt;br&gt;
&lt;br&gt;
A dumb brute force way is to write the lines into a 2D matrix (image)&lt;br&gt;
and then use the Euclidean Distance Transform (bwdist() which is in&lt;br&gt;
the Image Processing Toolbox), but I bet there's a more clever&lt;br&gt;
analytical method.</description>
    </item>
    <item>
      <pubDate>Sat, 31 Jul 2010 00:58:10 -0400</pubDate>
      <title>Anushka for Shape FX Hot Shot Thigh Gel</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288218#767324</link>
      <author>ANUSHKA</author>
      <description>Anushka for Shape FX Hot Shot Thigh Gel&lt;br&gt;
&lt;br&gt;
**************************************&lt;br&gt;
&lt;a href=&quot;http://sites.google.com/site/anushkaphotosalert&quot;&gt;http://sites.google.com/site/anushkaphotosalert&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Sat, 31 Jul 2010 00:53:03 -0400</pubDate>
      <title>Re: Line segment intersection?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288171#767323</link>
      <author>Steve </author>
      <description>&amp;gt; Does it only matter if they intersect once?  I.e. If the line is intersected by _any_ other line it's true or do you need the number that intersect it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you just need a boolean value for each line this doesn't sound like such a difficult problem as any time there is an intersection, both lines don't need to have any further calculations done for them.&lt;br&gt;
&amp;gt; To do this I would set up a sparse upper triangular matrix where each row/column corresponds to 1 line and traverse it horizontally.  Once the condition of intersection is met; neither of those rows will need traversed any further cutting down on necessary computations.  You could have a table with the points and circle radius/location so that a function; given the two indexes could check the criteria for intersection.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just a few thoughts; good luck!&lt;br&gt;
&amp;gt; -Sean&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Well, the problem is that I don't need the intersection point. As soon as a part of any another line is within the certain radius of the tip of my line, this is what I would need. A boolean value would be ok for the first time.&lt;br&gt;
And I don't want to have such a matrix in the background. I have more than 30000 lines, which is more than the allowed variable size in matlab. A vektorized solution would be the best - if possible.</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:44:21 -0400</pubDate>
      <title>Re: [Q] Programatically set bookmarks in matlab editor?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288201#767322</link>
      <author>Walter Roberson</author>
      <description>Kevin wrote:&lt;br&gt;
&amp;gt; Is this possible?&lt;br&gt;
&lt;br&gt;
My memory is going. :(  I thought that last night or this morning I had read a &lt;br&gt;
posting from someone at Mathworks showing the class to access for another &lt;br&gt;
desktop related function, and I was going to look at that posting and see if I &lt;br&gt;
could figure out some places to look to answer your question. I went back &lt;br&gt;
through 4 days of postings and could not find anything close to what I was &lt;br&gt;
thinking of. Sorry.&lt;br&gt;
&lt;br&gt;
Possibly, &lt;a href=&quot;http://undocumentedmatlab.com&quot;&gt;http://undocumentedmatlab.com&lt;/a&gt; might have some useful information &lt;br&gt;
about this; it's the sort of trouble that Yair would get into :p&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:40:29 -0400</pubDate>
      <title>Re: TechTradeTool help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288216#767321</link>
      <author>Walter Roberson</author>
      <description>Cren Soppelsa wrote:&lt;br&gt;
&amp;gt; Hi all, I downloaded the following file: TechTradeTool&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I tried to use it, but starting &quot;Plot Trading System&quot; button gives me &lt;br&gt;
&amp;gt; the following error message:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ??? Error using ==&amp;gt; tsmovavg&lt;br&gt;
&amp;gt; Invalid number of inputs.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; movAv at 3&lt;br&gt;
&amp;gt; tsOut = tsmovavg (tsIn, 's', (iDays-1), 0,1);&lt;br&gt;
&lt;br&gt;
&amp;gt; What's the problem? How can I solve it?&lt;br&gt;
&lt;br&gt;
It appears that the interface for tsmovavg() has changed over the years.&lt;br&gt;
&lt;br&gt;
I am not certain, but comparing documentation of the old interface,&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/toolbox/ftseries/tsmovavg.html&quot;&gt;http://www.math.carleton.ca/old/help/matlab/MathWorks_R13Doc/toolbox/ftseries/tsmovavg.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
against the new&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/access/helpdesk/help/toolbox/finance/tsmovavg.html&quot;&gt;http://www.mathworks.com/access/helpdesk/help/toolbox/finance/tsmovavg.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
the documented difference is that the &quot;lead&quot; parameter has been dropped. In &lt;br&gt;
the call there, &quot;lead&quot; would correspond to the (iDays-1) expression.&lt;br&gt;
&lt;br&gt;
However, if you examine what the parameter does in the old interface and &lt;br&gt;
compare to the new interface, the semantic meaning of what used to be called &lt;br&gt;
&quot;lead&quot; _seems_ to be the same as what is now called &quot;lag&quot;, and there does not &lt;br&gt;
appear to be any equivalent to what was formally called &quot;lag&quot;. The &quot;lag&quot; value &lt;br&gt;
that is coded there is the 0, so what used to be called &quot;lag&quot; was effectively &lt;br&gt;
not used before.&lt;br&gt;
&lt;br&gt;
If I am correct in my interpretation of the wording of the new documentation, &lt;br&gt;
the implication is that you should be able to fix the code by deleting the 0, &lt;br&gt;
out of the tsmovavg call in the movAv routine.&lt;br&gt;
&lt;br&gt;
It would not surprise me if you encounter other similar problems, but it's &lt;br&gt;
worth a shot.</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:27:04 -0400</pubDate>
      <title>&quot;An error occurred while reading the desktop configuration&quot;</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288217#767319</link>
      <author>Peter </author>
      <description>I think this is only the 2nd time I have started up matlab - I am a new user. I ran it for many days before having to restart the pc for other reasons. I first shut down matlab.&lt;br&gt;
&lt;br&gt;
Now when I start it up it runs fine but keeps giving me this message in the command window - &quot;Warning: An error occurred while reading the desktop configuration file. Using the default configuration.&quot;&lt;br&gt;
&lt;br&gt;
Can anyone tell me what I should do to fix this?&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
(Running on Windows 7 professional)</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:25:27 -0400</pubDate>
      <title>TechTradeTool help</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288216#767318</link>
      <author>Cren Soppelsa</author>
      <description>Hi all, I downloaded the following file: TechTradeTool&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool&quot;&gt;http://www.mathworks.com/matlabcentral/fileexchange/3806-techtradetool&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
I tried to use it, but starting &quot;Plot Trading System&quot; button gives me the following error message:&lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; tsmovavg&lt;br&gt;
Invalid number of inputs.&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; movAv at 3&lt;br&gt;
tsOut = tsmovavg (tsIn, 's', (iDays-1), 0,1);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; Dimbeta at 4&lt;br&gt;
[tsMovAv validFromAv] = movAv (tsIn, 1, idays1);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; sysdimbeta at 5&lt;br&gt;
[tsDim validFromDim] = dimbeta (tsIn,idays1);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; plotSystem at 34&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;[tsSysOut, tsSysOutPlot] = sysDimbeta(st, tsIn, days1, days2);&lt;br&gt;
&lt;br&gt;
??? Error using ==&amp;gt; plotSystem&lt;br&gt;
Error using ==&amp;gt; tsmovavg&lt;br&gt;
Invalid number of inputs.&lt;br&gt;
&lt;br&gt;
??? Error while evaluating uicontrol Callback&lt;br&gt;
&lt;br&gt;
What's the problem? How can I solve it?&lt;br&gt;
&lt;br&gt;
Thank you :)</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:25:07 -0400</pubDate>
      <title>Re: How to quickly generate list of traversal schemes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288125#767320</link>
      <author>Walter Roberson</author>
      <description>Jeremy Freeman wrote:&lt;br&gt;
&amp;gt; I have ran into a speed barrier on a piece of code I'm working, and I &lt;br&gt;
&amp;gt; hope some of you guys can offer any advice on my problem.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have to determine the best way to connect source points to destination &lt;br&gt;
&amp;gt; points for use in a blob tracking algorithm.  Because of the non &lt;br&gt;
&amp;gt; descriptive nature of the blobs, I effectively have a list of points for &lt;br&gt;
&amp;gt; the set of destinations and sources.  I also have the distances between &lt;br&gt;
&amp;gt; each source and destination pair.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now, for the problem.  I need to find mutually exclusive sets (no &lt;br&gt;
&amp;gt; destination can have a source that another node has, and a source can &lt;br&gt;
&amp;gt; have no destination that another source has).  After generating the &lt;br&gt;
&amp;gt; sets, I can determine the weights and pick the best.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I am currently doing this with a brute force method (with a few &lt;br&gt;
&amp;gt; optimizations), but still have serious speed issues on the size of the &lt;br&gt;
&amp;gt; arrays that I am using.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The bottleneck is generating the sets.  Any ideas on how to do this faster?&lt;br&gt;
&lt;br&gt;
This sounds to me to be possibly equivalent to &quot;The Marriage Problem&quot;,&lt;br&gt;
&lt;a href=&quot;http://www.cut-the-knot.org/arithmetic/marriage.shtml&quot;&gt;http://www.cut-the-knot.org/arithmetic/marriage.shtml&lt;/a&gt;</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:22:06 -0400</pubDate>
      <title>smoothin a beizer curve</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288215#767316</link>
      <author>Danna </author>
      <description>I have this code, the P1(3,1)(3,2) points are the same as P(1,1)(1,2), and i need to subtitude them to smooth the result&lt;br&gt;
&lt;br&gt;
P1=[-5,3;4,-2;3,2];&lt;br&gt;
P=[3,2;5,6;2,4;3,4];&lt;br&gt;
t=0:0.01:1;&lt;br&gt;
X(:,1)=(1-t).^2*P1(1,1)+2*(1-t).*t*P1(2,1)+t.^2*P1(3,1);&lt;br&gt;
X(:,2)=(1-t).^2*P1(1,2)+2*(1-t).*t*P1(2,2)+t.^2*P1(3,2);&lt;br&gt;
plot(X(:,1),X(:,2))&lt;br&gt;
hold on&lt;br&gt;
X1(:,1)=(1-t).^3*P(1,1)+3*(1-t).^2.*t*P(2,1)+3*(1-t).*t.^2*P(3,1)+t.^3*P(4,1);&lt;br&gt;
X1(:,2)=(1-t).^3*P(1,2)+3*(1-t).^2.*t*P(2,2)+3*(1-t).*t.^2*P(3,2)+t.^3*P(4,2);&lt;br&gt;
plot(X1(:,1),X1(:,2))&lt;br&gt;
&lt;br&gt;
I tried this, but it didn&#180;t work out:&lt;br&gt;
&lt;br&gt;
P1=[-5,3;4,-2;3,2];&lt;br&gt;
P=[3,2;5,6;2,4;3,4];&lt;br&gt;
&lt;br&gt;
t=0:0.01:1;&lt;br&gt;
P1(3,1)=(1-t)*P(3,1)+P1(1,1);&lt;br&gt;
P1(3,2)=(1-t)*P(3,2)+P1(1,2);&lt;br&gt;
P(1,1)=(1-t)*P(3,1)+P1(1,1);&lt;br&gt;
P(1,2)=(1-t)*P(3,1)+P1(1,1);&lt;br&gt;
&lt;br&gt;
X(:,1)=(1-t).^2*P1(1,1)+2*(1-t).*t*P1(2,1)+t.^2*P1(3,1);&lt;br&gt;
X(:,2)=(1-t).^2*P1(1,2)+2*(1-t).*t*P1(2,2)+t.^2*P1(3,2);&lt;br&gt;
plot(X(:,1),X(:,2))&lt;br&gt;
hold on&lt;br&gt;
X1(:,1)=(1-t).^3*P(1,1)+3*(1-t).^2.*t*P(2,1)+3*(1-t).*t.^2*P(3,1)+t.^3*P(4,1);&lt;br&gt;
X1(:,2)=(1-t).^3*P(1,2)+3*(1-t).^2.*t*P(2,2)+3*(1-t).*t.^2*P(3,2)+t.^3*P(4,2);&lt;br&gt;
plot(X1(:,1),X1(:,2))&lt;br&gt;
&lt;br&gt;
what can i do???&lt;br&gt;
&lt;br&gt;
thanks</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:21:04 -0400</pubDate>
      <title>scrollbar/slider for the axes</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288214#767315</link>
      <author>tunio </author>
      <description>hi,&lt;br&gt;
as i mentioned in my previous message that i am using the following code to plot two different types of data on two axes. One of them is 'xls' and the other one is 'ascii'.&lt;br&gt;
now the next task is the implementation of a slider at the horizontal position for the both axes so when i zoom in into the axes and the graph expand then with help of this slider i should move from left to right or right to left along the graph.&lt;br&gt;
i am not very familier to matlab and this is the part of a project which i have to finish in 1 week so i,ll be very thankful if any body can help me in detail for this part of my project. &lt;br&gt;
here are the codes from my m.file&lt;br&gt;
&lt;br&gt;
function varargout = ekg_vis(varargin)&lt;br&gt;
gui_Singleton = 1;&lt;br&gt;
gui_State = struct('gui_Name',       mfilename, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_Singleton',  gui_Singleton, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_OpeningFcn', @ekg_vis_OpeningFcn, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_OutputFcn',  @ekg_vis_OutputFcn, ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_LayoutFcn',  [] , ...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'gui_Callback',   []);&lt;br&gt;
if nargin &amp;&amp; ischar(varargin{1})&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_State.gui_Callback = str2func(varargin{1});&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
if nargout&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
else&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;gui_mainfcn(gui_State, varargin{:});&lt;br&gt;
end&lt;br&gt;
% End initialization code - DO NOT EDIT&lt;br&gt;
&lt;br&gt;
file = '';&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Executes just before ekg_vis is made visible.&lt;br&gt;
function ekg_vis_OpeningFcn(hObject, eventdata, handles, varargin)&lt;br&gt;
% This function has no output args, see OutputFcn.&lt;br&gt;
% hObject    handle to figure&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
% varargin   command line arguments to ekg_vis (see VARARGIN)&lt;br&gt;
&lt;br&gt;
% Choose default command line output for ekg_vis&lt;br&gt;
handles.output = hObject;&lt;br&gt;
&lt;br&gt;
% Update handles structure&lt;br&gt;
guidata(hObject, handles);&lt;br&gt;
set(hObject, 'toolbar','figure');&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% This sets up the initial plot - only do when we are invisible&lt;br&gt;
% so window can get raised using ekg_vis.&lt;br&gt;
%if strcmp(get(hObject,'Visible'),'off')&lt;br&gt;
%    plot(rand(5));&lt;br&gt;
%end&lt;br&gt;
&lt;br&gt;
% UIWAIT makes ekg_vis wait for user response (see UIRESUME)&lt;br&gt;
% uiwait(handles.figure1);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Outputs from this function are returned to the command line.&lt;br&gt;
function varargout = ekg_vis_OutputFcn(hObject, eventdata, handles)&lt;br&gt;
% varargout  cell array for returning output args (see VARARGOUT);&lt;br&gt;
% hObject    handle to figure&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
% Get default command line output from handles structure&lt;br&gt;
varargout{1} = handles.output;&lt;br&gt;
&lt;br&gt;
% --- Executes on button press in pushbutton1.&lt;br&gt;
function pushbutton1_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to pushbutton1 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
sh(1)=subplot(2,1,1);&lt;br&gt;
cla;&lt;br&gt;
file=get(handles.text1,'String');&lt;br&gt;
data = xlsread(file);&lt;br&gt;
data_len = length(data);&lt;br&gt;
plot(data(1:data_len,1));&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
h = uicontrol('Style', 'pushbutton', 'String', 'Clear Graph/s',...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Position', [10 10 103 30], 'Callback', 'cla');&lt;br&gt;
&lt;br&gt;
sh(2)=subplot(2,1,2);&lt;br&gt;
cla;&lt;br&gt;
filea=get(handles.text2,'String');&lt;br&gt;
dataascii = textread(filea);&lt;br&gt;
data_lenascii = length(dataascii);&lt;br&gt;
plot(dataascii);&lt;br&gt;
&lt;br&gt;
linkaxes(sh,'x');&lt;br&gt;
&lt;br&gt;
% --------------------------------------------------------------------&lt;br&gt;
function FileMenu_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to FileMenu (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --------------------------------------------------------------------&lt;br&gt;
function OpenMenuItem_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to OpenMenuItem (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
file = uigetfile('*.fig');&lt;br&gt;
if ~isequal(file, 0)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;open(file);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
% --------------------------------------------------------------------&lt;br&gt;
function PrintMenuItem_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to PrintMenuItem (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
printdlg(handles.figure1)&lt;br&gt;
&lt;br&gt;
% --------------------------------------------------------------------&lt;br&gt;
function CloseMenuItem_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to CloseMenuItem (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
selection = questdlg(['Close ' get(handles.figure1,'Name') '?'],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;['Close ' get(handles.figure1,'Name') '...'],...&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Yes','No','Yes');&lt;br&gt;
if strcmp(selection,'No')&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return;&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
delete(handles.figure1)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Executes on selection change in popupmenu1.&lt;br&gt;
function popupmenu1_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to popupmenu1 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array&lt;br&gt;
%        contents{get(hObject,'Value')} returns selected item from popupmenu1&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Executes during object creation, after setting all properties.&lt;br&gt;
function popupmenu1_CreateFcn(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to popupmenu1 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    empty - handles not created until after all CreateFcns called&lt;br&gt;
&lt;br&gt;
% Hint: popupmenu controls usually have a white background on Windows.&lt;br&gt;
%       See ISPC and COMPUTER.&lt;br&gt;
if ispc &amp;&amp; isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;set(hObject,'BackgroundColor','white');&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
set(hObject, 'String', {'plot(rand(5))', 'plot(sin(1:0.01:25))', 'bar(1:.5:10)', 'plot(membrane)', 'surf(peaks)'});&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- If Enable == 'on', executes on mouse press in 5 pixel border.&lt;br&gt;
% --- Otherwise, executes on mouse press in 5 pixel border or over pushbutton1.&lt;br&gt;
function pushbutton1_ButtonDownFcn(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to pushbutton1 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Executes on button press in pushbutton4.&lt;br&gt;
function pushbutton4_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to pushbutton4 (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
[name path index] = uigetfile('*.xls','Bitte Excel Datei ausw&#228;hlen');&lt;br&gt;
file = strcat(path,name);&lt;br&gt;
set(handles.text1,'String',file);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
% --- Executes on button press in pushbuttonacsii.&lt;br&gt;
function pushbuttonacsii_Callback(hObject, eventdata, handles)&lt;br&gt;
% hObject    handle to pushbuttonacsii (see GCBO)&lt;br&gt;
% eventdata  reserved - to be defined in a future version of MATLAB&lt;br&gt;
% handles    structure with handles and user data (see GUIDATA)&lt;br&gt;
&lt;br&gt;
[name path index] = uigetfile('*.ascii','Bitte ascii Datei ausw&#228;hlen');&lt;br&gt;
file = strcat(path,name);&lt;br&gt;
set(handles.text2,'String',file);</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:18:50 -0400</pubDate>
      <title>Re: remove</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288151#767317</link>
      <author>Walter Roberson</author>
      <description>Abhishek wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; &amp;gt; syms A B C D E F G H I J K L  M N O P Q R S T U V W X Y Z  a b c d e &lt;br&gt;
&amp;gt;&amp;gt; f g h i j k l m n o p q r s t u v w x y z S1 TL1 &amp;gt; &lt;br&gt;
&lt;br&gt;
&amp;gt; for k=1:i&lt;br&gt;
&amp;gt;  eq(k)=TL1(k+i+2);&lt;br&gt;
&amp;gt; end&lt;br&gt;
&amp;gt; eq1=num2cell(eq);&lt;br&gt;
&amp;gt; TTL1=num2cell(TL1);&lt;br&gt;
&amp;gt; S=solve(eq1{:},TTL1{3:i+2});&lt;br&gt;
&amp;gt; Vout=S.x;&lt;br&gt;
&amp;gt; Vin=z;&lt;br&gt;
&amp;gt; H=Vout/Vin;&lt;br&gt;
&amp;gt; which works but i want to use Vout=S.TTL1{3};&lt;br&gt;
&amp;gt; Vin=S.TTL1{2};&lt;br&gt;
&amp;gt; H=Vout/Vin;&lt;br&gt;
&amp;gt; as it is a part of automation....But it gives error as&lt;br&gt;
&amp;gt;  &amp;gt;S.TTL1{3}&lt;br&gt;
&amp;gt; ??? Reference to non-existent field 'TTL1'.&lt;br&gt;
&lt;br&gt;
S.(TTL1{3})</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:07:21 -0400</pubDate>
      <title>Re: fread repetition factor</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288211#767314</link>
      <author>Ralph Page</author>
      <description>Walter Roberson &amp;lt;roberson@hushmail.com&amp;gt; wrote in message &amp;lt;i2vk6a$nu$2@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; Ralph Page wrote:&lt;br&gt;
&amp;gt; &amp;gt; I am using:&lt;br&gt;
&amp;gt; &amp;gt; DataValues=fread(fid,'2304*uint8',116);&lt;br&gt;
&amp;gt; &amp;gt; To read in 2304 bytes, then skip 116 bytes and repeat for the entire file.&lt;br&gt;
&amp;gt; &amp;gt; Works great.&lt;br&gt;
&amp;gt; &amp;gt; I'd like to make the 2304 value a variable.&lt;br&gt;
&amp;gt; &amp;gt; So far I have been unsuccessful, is it possible?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DataValues=fread(fid,sprintf('%d*uint8',BytesToRead),116);&lt;br&gt;
&lt;br&gt;
Thanks Walter, works great</description>
    </item>
    <item>
      <pubDate>Fri, 30 Jul 2010 23:02:06 -0400</pubDate>
      <title>Re: How do you find all the 0's in a matrix and replace with NaN</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/288213#767312</link>
      <author>Priom Rahman</author>
      <description>Brilliant thanks !!!!!!</description>
    </item>
  </channel>
</rss>
