<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:mw="http://www.mathworks.com/2008/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" xml:lang="en-US" xml:base="http://www.mathworks.com/matlabcentral/fileexchange/">
  <id>tag:www.mathworks.com,2005:/matlabcentral/fileexchange/feed</id>
  <link rel="alternate" type="text/html" href="http://www.mathworks.com" />
  
  <generator uri="http://www.mathworks.com/matlabcentral/fileexchange" version="1">MATLAB Central File Exchange</generator>
  <icon>icon.png</icon>
  <logo>logo.png</logo>
  <title type="text">MATLAB Central - File Exchange</title>
  <subtitle type="text">User-contributed code library</subtitle>
  <updated>2013-05-26T01:05:52-04:00</updated>
  <link rel="alternate" href="http://www.mathworks.com/matlabcentral/fileexchange/index" type="text/html" />
  
  <link rel="next" href="/matlabcentral/fileexchange/admin/status?action=feed&amp;controller=file_infos&amp;page=1" type="application/atom+xml" />
  <openSearch:totalResults>18249</openSearch:totalResults>
  <openSearch:startIndex>1</openSearch:startIndex>
  <openSearch:itemsPerPage>100</openSearch:itemsPerPage>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/mathworks/qkjK" /><feedburner:info uri="mathworks/qkjk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41941</id>
    <published>2013-05-24T19:39:22Z</published>
    <updated>2013-05-24T19:39:22Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/51pmmg2h2yM/41941" />
    <title type="text">Snip.m  Snip elements out of vectors/matrices</title>
    <summary type="text">Solves problems s.a. 'remove all nan' from a vector, 'get rid of 14th row of matrix' with low effort</summary>
    <content type="html">&lt;p&gt;I often end up having to remove certain elements from a vector, or I don't need certain lines from my data and similar problems. While matlab has great matrix manipulation capability, I find myself continuously forgetting which [(:,)):,) combination would do the trick nicely and then proceed to Google. Therefore, my first attempt at creating something useful turns matlab logic upside down: Imagine your vector is on a strip of paper, and you cut out all the unwanted nan's. Then paste the rest together. Same with matrices. Also works with specifying the rows and columns to get rid of etc.&lt;/p&gt;

&lt;p&gt;This aim is to remove large accumulations of logical index descriptions (bracket-clusters) and provide an easy command instead:&lt;/p&gt;

&lt;p&gt;snip(input,snipthis)&lt;/p&gt;

&lt;p&gt;While it is not perfect (written in a flurry), it worked for me so far - so please provide feedback to make it better. It should work with everything necessary, except self-defined data-structures.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/51pmmg2h2yM" height="1" width="1"/&gt;</content>
    <author>
      <name>Nicolas</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/357330</uri>
      <email>Nicolasummen@web.de</email>
    </author>
    <category scheme="http://www.mathworks.com/tags/" term="basic function" />
    <category scheme="http://www.mathworks.com/tags/" term="matrix manipulation" />
    <category scheme="http://www.mathworks.com/tags/" term="easy" />
    <category scheme="http://www.mathworks.com/tags/" term="vector manipulation" />
    <category scheme="http://www.mathworks.com/tags/" term="beginner" />
    <category scheme="http://www.mathworks.com/tags/" term="deletion" />
    <category scheme="http://www.mathworks.com/tags/" term="elements" />
    <category scheme="http://www.mathworks.com/tags/" term="rows" />
    <category scheme="http://www.mathworks.com/tags/" term="columns" />
    <category scheme="http://www.mathworks.com/tags/" term="data" />
    <mw:release>MATLAB 7.14 (R2012a)</mw:release>
    <mw:requirement type="mw" id="1">MATLAB</mw:requirement>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="8" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41941</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41940</id>
    <published>2013-05-24T19:38:53Z</published>
    <updated>2013-05-24T19:38:53Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/KFpiFpoeFQk/41940" />
    <title type="text">James O'Shaughnessey's Trending Value Screener</title>
    <summary type="text">This script is designed to replicate the work performed by James O'Shaughnessey as detailed in his</summary>
    <content type="html">&lt;p&gt;A very rough description of Trending Value:&lt;/p&gt;

&lt;p&gt;Download all financial information on every company available with a market cap &amp;gt; $200M. Look at six statistics to form a stock's value for part 1 of my filter. Each gets a ranking of 0-100 with 100 being the "best" in the stock universe and 0 being the "worst" in the stock universe. Those 6 are:&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P/E
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P/S
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P/B
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;P/FCF
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Shareholder Yield (which is Stock Buybacks + Dividend Yield)
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EV/EBITDA&lt;/p&gt;

&lt;p&gt;A "perfect" stock has a 600 rating. Any stock above a 420 or so is a very financially sound, well rounded company, and generally undervalued (as referenced by the P/E, P/S, P/B) so I know my money isn't being thrown into a travesty waiting to collapse.&lt;/p&gt;

&lt;p&gt;Then look at the top 10% of those stocks and sort them by 6-month relative price. This gives me an ordered list of financially sound and stable companies that the market is behind. A company can be financially stable without having growth, so this allows me to find out what's moving in the right direction.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/KFpiFpoeFQk" height="1" width="1"/&gt;</content>
    <author>
      <name>Justin</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/100460</uri>
      <email>justin.riley2@us.army.mil</email>
    </author>
    <category scheme="http://www.mathworks.com/tags/" term="stock" />
    <category scheme="http://www.mathworks.com/tags/" term="oshaughnessey" />
    <category scheme="http://www.mathworks.com/tags/" term="trending value" />
    <category scheme="http://www.mathworks.com/tags/" term="screener" />
    <mw:release>MATLAB 7.14 (R2012a)</mw:release>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="92" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41940</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41939</id>
    <published>2013-05-24T19:38:24Z</published>
    <updated>2013-05-24T19:38:24Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/ySBy9HadjN8/41939" />
    <title type="text">Merton Jump Diffusion Option Price (Matrixwise)</title>
    <summary type="text">Calculates Merton's 1976 Jump Diffusion Model by Closed Form Matrixwise Calculation for Full Surface</summary>
    <content type="html">&lt;p&gt;Calculates Option Prices by Merton's 1976 Jump Diffusion Model by Closed Form Matrixwise Calculation for Full Surface&lt;/p&gt;

&lt;p&gt;Inputs:
&lt;br /&gt;cp          [1,-1] Call,Put
&lt;br /&gt;S           Current Price
&lt;br /&gt;K           Strike Vector
&lt;br /&gt;T           Time-to-Maturity Vector
&lt;br /&gt;sigma       Volatility of Diffusion
&lt;br /&gt;r           Risk-free-Rate
&lt;br /&gt;q           Div Yield
&lt;br /&gt;lambda      Poisson Rate
&lt;br /&gt;a           Jump Mean
&lt;br /&gt;b           Jump Std Deviation
&lt;br /&gt;n           Event Count (Limited to 170 since factorial(170)=7.26e306)&lt;/p&gt;

&lt;p&gt;Example:
&lt;br /&gt;S = 100; K = (20:5:180)'; T = (0.1:0.1:5)';
&lt;br /&gt;sigma = 0.2; r = 0.0075; q = 0; lambda = 0.01; a = -0.2; b = 0.6; n = 50;
&lt;br /&gt;P = ia_calcMJDOptionPrice(cp,S,K,T,sigma,r,q,lambda,a,b,n);&lt;/p&gt;

&lt;p&gt;[mK,mT] = meshgrid(K,T); [sigma,C] = calcBSImpVol(cp,P,S,mK,mT,r,q);
&lt;br /&gt;subplot(2,1,1); mesh(mK,mT,P); subplot(2,1,2); mesh(mK,mT,sigma);&lt;/p&gt;

&lt;p&gt;References:
&lt;br /&gt;Merton, 1976, Option Pricing When Underlying Stock Returns are Discontinuous
&lt;br /&gt;&lt;a href="http://www.people.hbs.edu/rmerton/optionpricingwhenunderlingstock.pdf"&gt;http://www.people.hbs.edu/rmerton/optionpricingwhenunderlingstock.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/ySBy9HadjN8" height="1" width="1"/&gt;</content>
    <author>
      <name>Mark Whirdy</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/126394</uri>
      <email>mark.whirdy@pioneerinvestments.com</email>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41939/1/MertonJumpDiffusionSurface.jpg" />
    <media:thumbnail url="/matlabcentral/fx_files/41939/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="merton" />
    <category scheme="http://www.mathworks.com/tags/" term="options" />
    <category scheme="http://www.mathworks.com/tags/" term="finance" />
    <category scheme="http://www.mathworks.com/tags/" term="quant finance" />
    <category scheme="http://www.mathworks.com/tags/" term="stochastic model" />
    <category scheme="http://www.mathworks.com/tags/" term="levy model" />
    <category scheme="http://www.mathworks.com/tags/" term="option pricing" />
    <mw:release>MATLAB 8.0 (R2012b)</mw:release>
    <mw:requirement type="mw" id="1">MATLAB</mw:requirement>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="7" />
    <mw:acknowledgement type="fxid">41473</mw:acknowledgement>
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41939</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41938</id>
    <published>2013-05-24T18:58:53Z</published>
    <updated>2013-05-24T18:58:53Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/LzIElniz-Qk/41938" />
    <title type="text">Fit 2D Gaussian with Optimization Toolbox</title>
    <summary type="text">Fit a 2D rotated gaussian.

http://en.wikipedia.org/wiki/Gaussian_function</summary>
    <content type="html">&lt;p&gt;FMGAUSSFIT Create/alter optimization OPTIONS structure.
&lt;br /&gt;&amp;nbsp;&amp;nbsp;[fitresult,..., rr] = fmgaussfit(xx,yy,zz) uses ZZ for the surface 
&lt;br /&gt;&amp;nbsp;&amp;nbsp;height. XX and YY are vectors or matrices defining the x and y 
&lt;br /&gt;&amp;nbsp;&amp;nbsp;components of a surface. If XX and YY are vectors, length(XX) = n and 
&lt;br /&gt;&amp;nbsp;&amp;nbsp;length(YY) = m, where [m,n] = size(Z). In this case, the vertices of the
&lt;br /&gt;&amp;nbsp;&amp;nbsp;surface faces are (XX(j), YY(i), ZZ(i,j)) triples. To create XX and YY 
&lt;br /&gt;&amp;nbsp;&amp;nbsp;matrices for arbitrary domains, use the meshgrid function. FMGAUSSFIT
&lt;br /&gt;&amp;nbsp;&amp;nbsp;uses the lsqcurvefit tool, and the OPTIMZATION TOOLBOX. The initial
&lt;br /&gt;&amp;nbsp;&amp;nbsp;guess for the gaussian is places at the maxima in the ZZ plane. The fit
&lt;br /&gt;&amp;nbsp;&amp;nbsp;is restricted to be in the span of XX and YY.
&lt;br /&gt;&amp;nbsp;&amp;nbsp;See:
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Gaussian_function"&gt;http://en.wikipedia.org/wiki/Gaussian_function&lt;/a&gt;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;br /&gt;&amp;nbsp;&amp;nbsp;Examples:
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;To fit a 2D gaussian:
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[fitresult, zfit, fiterr, zerr, resnorm, rr] =
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;fmgaussfit(xx,yy,zz);
&lt;br /&gt;&amp;nbsp;&amp;nbsp;See also SURF, OMPTMSET, LSQCURVEFIT, NLPARCI, NLPREDCI.
&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/LzIElniz-Qk" height="1" width="1"/&gt;</content>
    <author>
      <name>Nathan Orloff</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/110338</uri>
    </author>
    <category scheme="http://www.mathworks.com/tags/" term="image processing" />
    <category scheme="http://www.mathworks.com/tags/" term="optimization" />
    <category scheme="http://www.mathworks.com/tags/" term="signal processing" />
    <category scheme="http://www.mathworks.com/tags/" term="matrix" />
    <category scheme="http://www.mathworks.com/tags/" term="gaussian" />
    <category scheme="http://www.mathworks.com/tags/" term="surface" />
    <mw:release>MATLAB 8.0 (R2012b)</mw:release>
    <mw:requirement type="mw" id="6">Optimization Toolbox</mw:requirement>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="8" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41938</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41937</id>
    <published>2013-05-24T18:57:58Z</published>
    <updated>2013-05-24T18:57:58Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/B9xn_Jyuo7M/41937" />
    <title type="text">Plot a plane from 3 points</title>
    <summary type="text">It plots a plane from 3 points.  Its returns all the coeff of plane (a, b, c,d)</summary>
    <content type="html">&lt;p&gt;[normal, d] = plot_line(p1, p2, p3)&lt;/p&gt;

&lt;p&gt;where, p1 = [x y z] similliarly all other points are passed in the same pattern.&lt;/p&gt;

&lt;p&gt;If the eq of line is assumed to be:
&lt;br /&gt;ax + by + cz = d;&lt;/p&gt;

&lt;p&gt;This function takes 3 points as input ans return [a b c] and d &lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/B9xn_Jyuo7M" height="1" width="1"/&gt;</content>
    <author>
      <name>Nitish Tripathi</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/282514</uri>
      <email>nitish.tripathi@student.kit.edu</email>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41937/1/screenshot.jpeg" />
    <media:thumbnail url="/matlabcentral/fx_files/41937/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="image processing" />
    <category scheme="http://www.mathworks.com/tags/" term="statistics" />
    <category scheme="http://www.mathworks.com/tags/" term="mathematics" />
    <mw:release>MATLAB 7.14 (R2012a)</mw:release>
    <mw:requirement type="mw" id="1">MATLAB</mw:requirement>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="9" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41937</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41936</id>
    <published>2013-05-24T18:57:32Z</published>
    <updated>2013-05-24T18:57:32Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/soobYqvvm5Y/41936" />
    <title type="text">Sine and Cosine Path tracing and animation</title>
    <summary type="text">it will trace the path of sin and cos curve</summary>
    <content type="html">&lt;p&gt;run file and follow the instruction... its easy and simple&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/soobYqvvm5Y" height="1" width="1"/&gt;</content>
    <author>
      <name>RAHUL RANJAN</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/340876</uri>
      <email>rahulranjan079@gmail.com</email>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41936/1/a15.JPG" />
    <media:thumbnail url="/matlabcentral/fx_files/41936/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="animation" />
    <category scheme="http://www.mathworks.com/tags/" term="gui" />
    <category scheme="http://www.mathworks.com/tags/" term="graphics" />
    <category scheme="http://www.mathworks.com/tags/" term="trignometry" />
    <mw:release>MATLAB 7.11 (R2010b)</mw:release>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="5" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41936</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41934</id>
    <published>2013-05-24T18:57:12Z</published>
    <updated>2013-05-24T18:57:12Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/-yBACmTCPl4/41934" />
    <title type="text">encellstr</title>
    <summary type="text"> ENCELLSTR  Create cell array of strings from char array or in ans with command-form use.</summary>
    <content type="html">&lt;p&gt;This rather trivial function is mainly a convenience utility to quickly create cellstr literals without typing all those pesky quotes, e.g. 
&lt;br /&gt;encellstr even using the variable editor I have to quote each entry&lt;/p&gt;

&lt;p&gt;I was only motivated to add it to the File Exchange by Loren's blog entry &lt;a href="http://blogs.mathworks.com/loren/2013/05/22/duality-between-function-and-command-syntax/"&gt;http://blogs.mathworks.com/loren/2013/05/22/duality-between-function-and-command-syntax/&lt;/a&gt;
&lt;br /&gt;&amp;nbsp;
&lt;br /&gt;ENCELLSTR  Create cell array of strings from char array or in ans with command-form use.
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;C = encellstr(S) calls CELLSTR to place each row of the character array S into 
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;separate cells of C. However this calling jacket for CELLSTR also allows
&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;functional form to save on quoting string literals.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/-yBACmTCPl4" height="1" width="1"/&gt;</content>
    <author>
      <name>Julian</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/72853</uri>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41934/1/encellstr.JPG" />
    <media:thumbnail url="/matlabcentral/fx_files/41934/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="utilities" />
    <category scheme="http://www.mathworks.com/tags/" term="cellstr" />
    <mw:release>MATLAB 7.12 (R2011a)</mw:release>
    <mw:requirement type="mw" id="1">MATLAB</mw:requirement>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="7" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41934</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41933</id>
    <published>2013-05-24T18:56:46Z</published>
    <updated>2013-05-24T18:56:46Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/gf0fsRE8Ixw/41933" />
    <title type="text">DIGITAL CLOCK</title>
    <summary type="text">This clock gives system time and date</summary>
    <content type="html">&lt;p&gt;Click green Radio button to run clock and red radio button to close the clock. even there is a toggle button to show and hide system date.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/gf0fsRE8Ixw" height="1" width="1"/&gt;</content>
    <author>
      <name>RAHUL RANJAN</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/340876</uri>
      <email>rahulranjan079@gmail.com</email>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41933/1/a13.JPG" />
    <media:thumbnail url="/matlabcentral/fx_files/41933/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="clock" />
    <category scheme="http://www.mathworks.com/tags/" term="digital clock" />
    <category scheme="http://www.mathworks.com/tags/" term="gui" />
    <category scheme="http://www.mathworks.com/tags/" term="animation" />
    <mw:release>MATLAB 7.11 (R2010b)</mw:release>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="7" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41933</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41932</id>
    <published>2013-05-24T18:55:56Z</published>
    <updated>2013-05-24T18:55:56Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/exO1s4Ir-BI/41932" />
    <title type="text">Collatz and Goldbach Conjucture</title>
    <summary type="text">Verification of Collatz and Goldbach Conjucture</summary>
    <content type="html">&lt;p&gt;To run collatz.m type collatz at command window and hit return and follow instruction and to run goldback conjucture type goldback(n) where n can be any +ve even integer&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/exO1s4Ir-BI" height="1" width="1"/&gt;</content>
    <author>
      <name>RAHUL RANJAN</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/340876</uri>
      <email>rahulranjan079@gmail.com</email>
    </author>
    <media:content medium="image" type="image/jpeg" url="/matlabcentral/fx_files/41932/1/a12.JPG" />
    <media:thumbnail url="/matlabcentral/fx_files/41932/1/thumbnail.jpg" />
    <category scheme="http://www.mathworks.com/tags/" term="conjuncture" />
    <category scheme="http://www.mathworks.com/tags/" term="mathematics" />
    <category scheme="http://www.mathworks.com/tags/" term="animation" />
    <mw:release>MATLAB 7.11 (R2010b)</mw:release>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="2" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41932</feedburner:origLink></entry>
  <entry>
    <id>tag:www.mathworks.com,2005:FileInfo/41930</id>
    <published>2013-05-24T18:55:31Z</published>
    <updated>2013-05-24T18:55:31Z</updated>
    <link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/mathworks/qkjK/~3/L0FXMvM1zPk/41930" />
    <title type="text">Functional IIF function</title>
    <summary type="text">Another implementation of the "inline if" function, it one takes function handles instead of values.</summary>
    <content type="html">&lt;p&gt;This function implements the ternary "cond ? then : else" operator. I operates on scalars, matrices and cell arrays.&lt;/p&gt;

&lt;p&gt;Instead of precalculated values, it takes function handles which are only applied when the condition is true or false, respectively.&lt;/p&gt;

&lt;p&gt;The help text follows:&lt;/p&gt;

&lt;p&gt;%iif Implements the ternary ?: operator
&lt;br /&gt;% out = iif (@condition, @thenF, elseF@, in[, out])
&lt;br /&gt;% out = iif (condition, @thenF, elseF@, in[, out])
&lt;br /&gt;%
&lt;br /&gt;% The result is equivalent to
&lt;br /&gt;%   condition(in) ? thenF(in) : elseF(in)
&lt;br /&gt;% if condition is a function and
&lt;br /&gt;%   condition ? thenF(in) : elseF(in)
&lt;br /&gt;% else, for each element of the IN argument.
&lt;br /&gt;%
&lt;br /&gt;% The optional argument OUT serves as a template, if the output type is
&lt;br /&gt;% different from the input type, e.g. for mapping arrays to cells and vice
&lt;br /&gt;% versa. If it is empty, scalars are assumed for input and output of all
&lt;br /&gt;% functions and for the IN argument.
&lt;br /&gt;%
&lt;br /&gt;% Since using this function may be a bit difficult, here are two examples
&lt;br /&gt;% where it is used inside an anonymous function:
&lt;br /&gt;%
&lt;br /&gt;% (For operation on single values:)
&lt;br /&gt;%   fun = @(x)(iif(isnumeric(x), ...
&lt;br /&gt;%     @(y)(y==1), ...
&lt;br /&gt;%     @(y)(false), ...
&lt;br /&gt;%     x, []))
&lt;br /&gt;%
&lt;br /&gt;% (and for operating on a cell array:)
&lt;br /&gt;%   fun = @(x)(iif(cellfun(@isnumeric, x), ...
&lt;br /&gt;%     @(y)(num2cell([y{:}]==1)), ...
&lt;br /&gt;%     @(y)({false}), ...
&lt;br /&gt;%     x))&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/mathworks/qkjK/~4/L0FXMvM1zPk" height="1" width="1"/&gt;</content>
    <author>
      <name>Daniel Hornung</name>
      <uri>http://www.mathworks.com/matlabcentral/fileexchange/authors/136892</uri>
    </author>
    <category scheme="http://www.mathworks.com/tags/" term="iif" />
    <mw:release>MATLAB 7.12 (R2011a)</mw:release>
    <mw:statistics mw:comments="0" mw:ratings="0" mw:average="0.0" mw:downloads="4" />
    <mw:collaborate>false</mw:collaborate>
  <feedburner:origLink>http://www.mathworks.com/matlabcentral/fileexchange/41930</feedburner:origLink></entry>
</feed>
