<?xml version='1.0' encoding='utf-8' ?>
<!--  If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/  -->
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/'>
<channel>
  <title>Matlab</title>
  <link>http://community.livejournal.com/matlab/</link>
  <description>Matlab - LiveJournal.com</description>
  <managingEditor>vortexshedding@hotmail.com</managingEditor>
  <lastBuildDate>Wed, 09 Jul 2008 00:07:41 GMT</lastBuildDate>
  <generator>LiveJournal / LiveJournal.com</generator>
  <lj:journal>matlab</lj:journal>
  <lj:journaltype>community</lj:journaltype>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/17726.html</guid>
  <pubDate>Wed, 09 Jul 2008 00:07:41 GMT</pubDate>
  <title>Script from a line number</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/17726.html</link>
  <description>Hi! Is there a way to run a script from a specific line number till the end? Or at least run 1 specific line from a script? Thanks a lot!</description>
  <comments>http://community.livejournal.com/matlab/17726.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>molly_mahoney</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/17543.html</guid>
  <pubDate>Fri, 04 May 2007 15:39:40 GMT</pubDate>
  <title>repeated measures ANOVA.</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/17543.html</link>
  <description>&lt;p&gt;Is repeated measures ANOVA implementation in matlab really as dire as it seems?&amp;nbsp; I can&apos;t dind any tools that run n-way repeated measures ANOVA.&amp;nbsp; Anyone got any pointers?&lt;/p&gt;</description>
  <comments>http://community.livejournal.com/matlab/17543.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>jimyojimbo</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/17394.html</guid>
  <pubDate>Fri, 04 May 2007 15:30:01 GMT</pubDate>
  <title>Web Scraping &amp; Calendar Conversion</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/17394.html</link>
  <description>The MATLAB code below takes a big list of myspace band usernames, scrapes the gig information off of each one&apos;s website, and sticks it into a single Google Calendar compatible *.csv file.&lt;br /&gt;&lt;br /&gt;Future development may include refactoring into Ruby and creation of iCal standard output. Right now, though, it&apos;s good enough for my purposes.&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;% run_the_gig_amalgamating_myspace_scraping_calendar_compatibility_maker.m&lt;br /&gt;% (c) opticsdoug May 2007&lt;br /&gt;% I run this script to load up my massive list of bands, and output&lt;br /&gt;% all their gigs to a Google Calendar compatible *.csv file&lt;br /&gt;&lt;br /&gt;% It passes arguments to scrape_shows_to_csv, which in turn&lt;br /&gt;% wraps the functions scrape_shows and shows_to_csv that do all the work.&lt;br /&gt;clc&lt;br /&gt;% This loads up the bandlist, which is just an ascii file with each&lt;br /&gt;% band&apos;s myspace name on a new line&lt;br /&gt;listofbands = textread(&apos;may_bandlist.m&apos;,&apos;%s&apos;);&lt;br /&gt;% just as easily, you can put in a few bands by hand, like this next line&lt;br /&gt;%listofbands = {&apos;pirex&apos;, &apos;littlevoice&apos;,&apos;lorettatheband&apos;}&lt;br /&gt;&lt;br /&gt;%Here&apos;s where I set the output filename&lt;br /&gt;output_filename = &apos;output.csv&apos;;&lt;br /&gt;&lt;br /&gt;% And here&apos;s where we run the big wrapper function with all the goodies&lt;br /&gt;% inside&lt;br /&gt;scrape_shows_to_csv(listofbands,output_filename)&lt;br /&gt;&lt;br /&gt;% And thus the little script ends. On with the show!&lt;br /&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;&lt;br /&gt;% function scrape_shows_to_csv(listofbands,output_filename)&lt;br /&gt;% (c) opticsdoug May 2007&lt;br /&gt;% This function wraps scrape_shows and shows_to_csv&lt;br /&gt;% Given&lt;br /&gt;% 1) listofbands (a cell array of strings - the myspace bandnames), and&lt;br /&gt;% 2) output_filename (a string of the csv filename we want to build)&lt;br /&gt;% This file will scrape the myspace pages of the named bands, and build a&lt;br /&gt;% *.csv file of all the named bands&apos; gigs. This *.csv file is at least&lt;br /&gt;% compatible with Google Calendar, possibly Outlook or Yahoo!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function scrape_shows_to_csv(listofbands,output_filename)&lt;br /&gt;&lt;br /&gt;% Here we call the ScrapeUpcomingShows function for each of the bands in&lt;br /&gt;% our listofbands cell array of strings&lt;br /&gt;% Then we concatenate them into one massive cell array of gigging power&lt;br /&gt;massive_cell_array ={};&lt;br /&gt;for index = 1:length(listofbands)&lt;br /&gt;    disp(listofbands{index})&lt;br /&gt;massive_cell_array = [massive_cell_array; scrape_shows(listofbands{index})];&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;shows_to_csv(massive_cell_array,output_filename);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% function awesome_cell_array = scrape_shows(username)&lt;br /&gt;% (c) opticsdoug May 2007&lt;br /&gt;% some nights I am more nerdy than others&lt;br /&gt;% This matlab script takes a myspace band&apos;s username and returns a cell&lt;br /&gt;% array of the following form:&lt;br /&gt;% &apos;username&apos; &apos;venue&apos; &apos;MMM DD YYYY&apos; &apos;HH:MMP&apos; &apos;City, State&apos; &apos;details url&apos;&lt;br /&gt;% with as many of those rows as they have gig entries&lt;br /&gt;&lt;br /&gt;function awesome_cell_array = scrape_shows(username)&lt;br /&gt;%username = &apos;lorettatheband&apos;&lt;br /&gt;&lt;br /&gt;s = urlread([&apos;http://www.myspace.com/&apos; username]);&lt;br /&gt;&lt;br /&gt;%finds the Upcoming Shows division (profile_bandschedule)&lt;br /&gt;startdivat = strfind(s, &apos;&amp;lt;div id=&quot;profile_bandschedule&quot;&amp;gt;&apos;);&lt;br /&gt;if isempty(startdivat)&lt;br /&gt;    awesome_cell_array = {};&lt;br /&gt;    return&lt;br /&gt;end&lt;br /&gt;l = strfind(s, &apos;&amp;lt;/div&amp;gt;&apos;);&lt;br /&gt;m = find((l&amp;gt;startdivat));&lt;br /&gt;enddivat = l(m(1));&lt;br /&gt;mydiv = s(startdivat:enddivat);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;%pulls out all the venue listings and associated urls&lt;br /&gt;alllinkstarts = strfind(mydiv,&apos;&amp;lt;a href=&apos;);&lt;br /&gt;endlinkindices = strfind(mydiv,&apos;&amp;lt;/a&amp;gt;&apos;);&lt;br /&gt;clear link_array thisvenue&lt;br /&gt;for index = 2:length(alllinkstarts)&lt;br /&gt;    alllinkstarts = strfind(mydiv(1:endlinkindices(index)),&apos;&amp;lt;a href=&apos;);&lt;br /&gt;    grabbedstring = mydiv(alllinkstarts(index):endlinkindices(index)+3);&lt;br /&gt;    link_array{index-1} = grabbedstring;&lt;br /&gt;    &lt;br /&gt;    endoftag = strfind(grabbedstring,&apos;&amp;gt;&apos;);&lt;br /&gt;    endoftext = strfind(grabbedstring,&apos;&amp;lt;/a&amp;gt;&apos;);&lt;br /&gt;    &lt;br /&gt;    thisvenue = grabbedstring(endoftag(1)+1:endoftext-1);&lt;br /&gt;    venue_array{index-1} = thisvenue;&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;%pulls out the rest of the text fields, identified by the useful placement&lt;br /&gt;%of &amp;lt;/font&amp;gt; tags&lt;br /&gt;fontcloseindices = strfind(mydiv,&apos;&amp;lt;/font&amp;gt;&apos;);&lt;br /&gt;textdata ={};&lt;br /&gt;for index = 1:length(fontcloseindices)&lt;br /&gt;    allmarkupends = strfind(mydiv(1:fontcloseindices(index)),&apos;&amp;gt;&apos;);&lt;br /&gt;    grabbedstring = mydiv(allmarkupends(end)+1:fontcloseindices(index)-1);&lt;br /&gt;    &lt;br /&gt;    %this filter went through a lot of changes - it has to allow for folks&lt;br /&gt;    %who put garbage in for their gig&apos;s location, while throwing out a&lt;br /&gt;    %bunch of useless tokens.&lt;br /&gt;    %if or(length(grabbedstring)&amp;gt;2, strcmp(grabbedstring,&apos;?&apos;))&lt;br /&gt;    %if and(length(grabbedstring)&amp;gt;0, index&amp;gt;1)&lt;br /&gt;    if and(mod(index,4)~=1, index~=2)&lt;br /&gt;        textdata = {textdata{:}, grabbedstring};&lt;br /&gt;    end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;%&amp;lt;span class=&quot;nametext&quot;&amp;gt;Loretta&amp;lt;/span&amp;gt;&lt;br /&gt;nametextstart = strfind(s,&apos;&amp;lt;span class=&quot;nametext&quot;&amp;gt;&apos;)+23;&lt;br /&gt;nametextend = strfind(s(nametextstart:nametextstart+100),&apos;&amp;lt;&apos;);&lt;br /&gt;bandname = s(nametextstart:nametextstart+nametextend(1)-2);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;%and we mash everything together&lt;br /&gt;reshaped_text = reshape(textdata, 3,[])&apos;;&lt;br /&gt;bandnamecells = repmat({bandname}, size(reshaped_text,1),1);&lt;br /&gt;&lt;br /&gt;%and viola&lt;br /&gt;awesome_cell_array = reshape({bandnamecells{:},venue_array{:}, reshaped_text{:}, link_array{:}}&apos;,length(bandnamecells),[]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;% function shows_to_csv(massive_cell_array,output_filename)&lt;br /&gt;% (c) opticsdoug May 2007&lt;br /&gt;% This matlab function takes a big cell array of strings, as created by&lt;br /&gt;% function scrape_upcoming_shows.m and spits them into a Google Calendar&lt;br /&gt;% readable *.csv file of specified output_filename&lt;br /&gt;&lt;br /&gt;function shows_to_csv(massive_cell_array,output_filename)&lt;br /&gt;&lt;br /&gt;%matlab file handling garbage - creates or overwrites as necessary&lt;br /&gt;fid = fopen(output_filename ,&apos;w+&apos;);&lt;br /&gt;if fid == (-1)&lt;br /&gt;    error(&apos;Could not open file %s&apos;, output_filename);&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;% Here we go and fix the date and time strings to make them match the&lt;br /&gt;% Outlook *.csv file formatting. I got lucky, and matlab has the internal&lt;br /&gt;% timestamp definitions to process these correctly.&lt;br /&gt;datestrings = {};&lt;br /&gt;timestrings = {};&lt;br /&gt;for index = 1:size(massive_cell_array,1)&lt;br /&gt;    this_datenum = datenum([massive_cell_array{index,3}]);&lt;br /&gt;    outdatstr = datestr(this_datenum,23);&lt;br /&gt;    datestrings{index}=outdatstr;&lt;br /&gt;&lt;br /&gt;    this_timenum = datenum([massive_cell_array{index,4}]);&lt;br /&gt;    outtimestr = datestr(this_timenum,14);&lt;br /&gt;    timestrings{index}=outtimestr;&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;% Here we do all the file writing&lt;br /&gt;% notice the tricks for writing comma delimited files:&lt;br /&gt;% 1) all your text cells need to be in quotes&lt;br /&gt;% 2) if your text has quotation marks in it, they need to be doubled&lt;br /&gt;fprintf(fid,&apos;&quot;Subject&quot;,&quot;Start Date&quot;,&quot;Start Time&quot;,&quot;Location&quot;,&quot;Description&quot;\n&apos;);&lt;br /&gt;for index = 1:size(massive_cell_array,1)&lt;br /&gt;fprintf(fid, &apos;&quot;%s&quot;,&quot;%s&quot;,&quot;%s&quot;,&quot;%s&quot;,&quot;%s&quot;\n&apos;,...&lt;br /&gt;    strrep(massive_cell_array{index,1},&apos;&quot;&apos;,&apos;&quot;&quot;&apos;),...&lt;br /&gt;    datestrings{index},...&lt;br /&gt;    strtrim(timestrings{index}),...&lt;br /&gt;    strrep(massive_cell_array{index,5},&apos;&quot;&apos;,&apos;&quot;&quot;&apos;),...&lt;br /&gt;    strrep(massive_cell_array{index,6},&apos;&quot;&apos;,&apos;&quot;&quot;&apos;));&lt;br /&gt;end&lt;br /&gt;fclose(fid);&lt;br /&gt;disp(&apos;done&apos;)&lt;br /&gt;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Processed 880 events.&lt;br /&gt;Successfully imported 880 events.&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;That&apos;s what Google Calendar had to say about a quick test with 144 bands.</description>
  <comments>http://community.livejournal.com/matlab/17394.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>opticsdoug</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/16932.html</guid>
  <pubDate>Wed, 25 Apr 2007 10:07:10 GMT</pubDate>
  <title>Repeated measures ANOVA</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/16932.html</link>
  <description>Is there any way at all to implement n-ways repeated measures ANOVA in Matlab?</description>
  <comments>http://community.livejournal.com/matlab/16932.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>jimyojimbo</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/16640.html</guid>
  <pubDate>Mon, 09 Apr 2007 12:59:38 GMT</pubDate>
  <title>matlab - accumulated histogram</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/16640.html</link>
  <description>Hi!&lt;br /&gt;&lt;br /&gt;what is called the accumulated histogram of the image?&lt;br /&gt;&lt;br /&gt;i need calculated accumulated histogram (normalized).&lt;br /&gt;&lt;br /&gt;How do I make this?</description>
  <comments>http://community.livejournal.com/matlab/16640.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>wildwinterwind</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/16389.html</guid>
  <pubDate>Mon, 23 Oct 2006 02:20:02 GMT</pubDate>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/16389.html</link>
  <description>Hi!&lt;br /&gt;I&apos;m adding tick labels to a plot:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;set(gca,&apos;XTickLabel&apos;,{&apos;label label&apos;,&apos;label label&apos;,&apos;label label&apos;})&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;and I would like to make them multiline like this:&lt;br /&gt;label&lt;br /&gt;label&lt;br /&gt;&lt;br /&gt;How do I make this? I didn&apos;t find any solution.&lt;br /&gt;With title I can do like this:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;title(sprintf(&apos;label\nlabel&apos;))&lt;br /&gt;&lt;/code&gt;</description>
  <comments>http://community.livejournal.com/matlab/16389.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>cgem</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/16273.html</guid>
  <pubDate>Fri, 08 Sep 2006 12:13:19 GMT</pubDate>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/16273.html</link>
  <description>This community looks quite dead, but anyway ;)&lt;br /&gt;&lt;br /&gt;Do you know how to solve problem with variable list of output arguments:&lt;br /&gt;output of &lt;br /&gt;&lt;br /&gt;gradient(U);&lt;br /&gt;&lt;br /&gt;depends on number of dimensions of U. So I have to do&lt;br /&gt;&lt;br /&gt;[dX] = gradient(U);&lt;br /&gt;[dX,dY] = gradient(U);&lt;br /&gt;[dX,dY,dZ] = gradient(U);&lt;br /&gt;&lt;br /&gt;How to make it general?</description>
  <comments>http://community.livejournal.com/matlab/16273.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>cgem</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/16057.html</guid>
  <pubDate>Sat, 22 Jul 2006 01:51:35 GMT</pubDate>
  <title>Animations (getframe, movie, movie2avi)</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/16057.html</link>
  <description>I have 3 subplots within my figure and I would like to create an avi.  Do I need to use the &quot;getframe&quot; command 3 times (once per subplot)?  If so, then what is the format of the subsequent &quot;movie&quot; and &quot;movie2avi&quot; commands? I am only familiar with those commands which call a single &quot;getframe&quot; variable, i.e. if F(t) = getframe, then movie(F,1) and movie2avi(F, &apos;samplemovie.avi&apos;). &lt;br /&gt; &lt;br /&gt;for t=first_frame:last_frame &lt;br /&gt; &lt;br /&gt;  subplot(3,1,1) &lt;br /&gt;  plotting commands &lt;br /&gt;  A(t) = getframe; &lt;br /&gt; &lt;br /&gt;  subplot(3,1,2) &lt;br /&gt;  plotting commands &lt;br /&gt;  B(t) = getframe; &lt;br /&gt; &lt;br /&gt;  subplot(3,1,3) &lt;br /&gt;  plotting commands &lt;br /&gt;  C(t) = getframe; &lt;br /&gt; &lt;br /&gt;end &lt;br /&gt; &lt;br /&gt;Is this the correct approach? Is there a better approach? Can I use &quot;getframe&quot; just once for the entire figure instead of 3 times for each subplot? If not, then how can I use the &quot;movie&quot; and &quot;movie2avi&quot; commands for A, B, C all at once (I want 1 single avi file to contain all 3 subplots). &lt;br /&gt; &lt;br /&gt;Thanks!</description>
  <comments>http://community.livejournal.com/matlab/16057.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>vortexshedding</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/15754.html</guid>
  <pubDate>Mon, 22 May 2006 15:27:13 GMT</pubDate>
  <title>Matlab Tips and Tricks</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/15754.html</link>
  <description>I am constantly discovering little tricks to get Matlab to run better or do things more easily.  I feel like there must be a ton of them that I don&apos;t know about.  So I will start by sharing a few of mine, and then if you want to comment with some more, that would be awesome.&lt;br /&gt;&lt;br /&gt;1.  Turn off hyperthreading.  This dropped my processing time by 30-40% right off the bat.  It does make other programs less responsive, but that can also be fixed by:&lt;br /&gt;&lt;br /&gt;2.  Setting Matlab&apos;s priority to &quot;below normal&quot; (CTRL-ALT-DEL -&amp;gt; task manager -&amp;gt; processes -&amp;gt; Right click on matlab.exe -&amp;gt; Set Priority).  I have not had any stability problems with this, and it makes the computer much more usable when Matlab is running full out.&lt;br /&gt;&lt;br /&gt;3.  If you are running loops (which are good to avoid, but some things are really hard to do with vectors), and you are saving a new result each time, initialize to the proper length first.  For example:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;N = 1E5;&lt;br /&gt;for count = 1:N&lt;br /&gt;    x(count) = count;&lt;br /&gt;end&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;takes about 60 seconds to run, while putting &lt;i&gt;x = zeros(1,N);&lt;/i&gt; in front drops the time to 0.0014 seconds.&lt;br /&gt;&lt;br /&gt;4.  If you are running a script, and you just want to rerun a part of the code, you can select it with the mouse and press F9.  It will run just that part in the command window.&lt;br /&gt;&lt;br /&gt;What is the most helpful Matlab tip you know of?</description>
  <comments>http://community.livejournal.com/matlab/15754.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>coliningus</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/15446.html</guid>
  <pubDate>Sat, 20 May 2006 05:21:30 GMT</pubDate>
  <title>Refresh / Update file modification</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/15446.html</link>
  <description>I use an external editor to write Matlab doe and after I modify some functions, rerun it .. Matlab tends not to update the changes.&amp;nbsp; I know there is a command that updates these changes as I have used this command before I can&apos;t recall what it is ... Any one can help ?&amp;nbsp; &lt;br /&gt; &lt;br /&gt; Thanks</description>
  <comments>http://community.livejournal.com/matlab/15446.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>tvn</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/15352.html</guid>
  <pubDate>Tue, 11 Apr 2006 02:53:49 GMT</pubDate>
  <title>word of warning regarding upgrading to Matlab v 14</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/15352.html</link>
  <description>I had the student version 13. I also bought the additional toolboxes optimization and controls about a year ago. I had somehow lost my installation CD and figured it might not be a bad idea to upgrade to student version 14. So I paid $99 plus taxes plus shipping and handling. I get it to install on my computer. I then accessed those &quot;online installs&quot; for those two toolboxes I got last year. Guess what? They tell me it only works for Matlab 13 and if I want to use my toolboxes I gotta pay more money to buy the toolbox installs for version 14 !! The optimization tool box was $60. The Matlab 14 version was $99. I paid $60 January 2005 and you&apos;d think that would work with &quot;future&quot; versions of matlab. Nope!!!&lt;br /&gt;&lt;br /&gt;Hence my word of warning:&lt;br /&gt;&lt;br /&gt;If you have toolboxes for the student version, they will not work on future upgrades. I confirmed this with the technical support at the mathworks.&lt;br /&gt;&lt;br /&gt;Isn&apos;t this unfair?</description>
  <comments>http://community.livejournal.com/matlab/15352.html</comments>
  <lj:mood>aggravated</lj:mood>
  <lj:security>public</lj:security>
  <lj:poster>katiecam</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/15089.html</guid>
  <pubDate>Wed, 29 Mar 2006 02:52:46 GMT</pubDate>
  <title>How to Keep an Idiot Busy in Matlab...</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/15089.html</link>
  <description>% How to Keep an Idiot Busy in Matlab&lt;br /&gt;b = uicontrol(&apos;Style&apos;, &apos;pushbutton&apos;, &apos;Units&apos;, &apos;normalized&apos;, &apos;Position&apos;,[.5 .5 .2 .1], &apos;String&apos;, &apos;Click Me!&apos;);&lt;br /&gt;s = &apos;set(b, &apos;&apos;Position&apos;&apos;,[0.8*rand 0.9*rand .2 .1])&apos;;&lt;br /&gt;k = 1000;&lt;br /&gt;while k &amp;gt;0&lt;br /&gt;    eval(s);&lt;br /&gt;    pause(1);&lt;br /&gt;    k = k-1;&lt;br /&gt;end&lt;br /&gt;set(b,&apos;Callback&apos;,s);</description>
  <comments>http://community.livejournal.com/matlab/15089.html</comments>
  <lj:mood>amused</lj:mood>
  <lj:security>public</lj:security>
  <lj:poster>katiecam</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/14632.html</guid>
  <pubDate>Mon, 27 Feb 2006 20:59:36 GMT</pubDate>
  <title>How do I check if a cell has a variable called &apos;s&apos; ?</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/14632.html</link>
  <description>Hi,  &lt;br /&gt;&lt;br /&gt;How do I check if a cell has a variable called &apos;s&apos; ?   of course I can just call that cell and look on the screen but is there a way to do it in Matlabl ? for example  go through all variables in a Cell and strcomp variable{i}  with value &apos;s&apos; ?   Thanks</description>
  <comments>http://community.livejournal.com/matlab/14632.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>tvn</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/14359.html</guid>
  <pubDate>Sat, 18 Feb 2006 16:10:09 GMT</pubDate>
  <title>Writting to both screen and file</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/14359.html</link>
  <description>Hi, how can I write output to both screen and file quickly ?   One method is use both fprintf(&apos;something&apos;); then fprintf(fid,&apos;something&apos;).  This double the number of lines.  I also try to do something like  for i = 1:length(fid_vector) fprintf(fid_vector(i),&apos;something&apos;) end;   ... I hope there&apos;s a quicker and more correct method ?</description>
  <comments>http://community.livejournal.com/matlab/14359.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>tvn</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/14164.html</guid>
  <pubDate>Wed, 18 Jan 2006 15:53:00 GMT</pubDate>
  <title>Simple drawing program to smoothen curve</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/14164.html</link>
  <description>Simple drawing program to smoothen curve&lt;br /&gt;&lt;br /&gt;Hi, any suggestion on a drawing program produce smoothen contious line ,  I have graphs with lines which sharp edges and I want to smoothen those.  Basically given several points on a graphs,  draw a curve through those points ... simple as that.&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;I was able to do some tricks (in Matlab) with least square procedure to produce smooth curve but the problem is it&apos;s not as flexible (e.g., I cannot tell it what point exactly it must pass through) so I am looking for a program that allows me to do so.  Please not gimp or photoshop as I don&apos;t know how to use them and doubt I can learn their complexity quickly.  &lt;br /&gt;&lt;br /&gt;Thanks</description>
  <comments>http://community.livejournal.com/matlab/14164.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>tvn</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/13639.html</guid>
  <pubDate>Mon, 19 Dec 2005 17:18:23 GMT</pubDate>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/13639.html</link>
  <description>Hello! &lt;br /&gt;&lt;br /&gt;In my city:&lt;br /&gt;The price of the DVD with full version MATLAB7 with keygen is $2.5&lt;br /&gt;And for $0.5 you can exchange this DVD to other disk with ANY program, like Photoshop CS, Matlab, Office.... etc.&lt;br /&gt;&lt;br /&gt;And this for sale everywere... &lt;br /&gt;This is TERRIBLE!!! but, it is convenient for students.&lt;br /&gt;&lt;br /&gt;How much did you pay for MATLAB?</description>
  <comments>http://community.livejournal.com/matlab/13639.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>koo_doo</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/13353.html</guid>
  <pubDate>Sat, 03 Dec 2005 21:33:22 GMT</pubDate>
  <title>matlab precision</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/13353.html</link>
  <description>While working on my final project for a graduate level engineering class while using matlab I stumbled upon a mind blogging situation on a simple if-else comparison&lt;br /&gt;&lt;br /&gt;for i=1:somenumber&lt;br /&gt;    &lt;b&gt;if value1 &amp;gt; value2&lt;/b&gt;&lt;br /&gt;    .......................&lt;br /&gt;    else&lt;br /&gt;    end;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;value1 is a calculated value in my program. value2 is not.&lt;br /&gt;&lt;br /&gt;If the value of value1 = value2  (for example: value1 = 1.15 and value2 = 1.15) then the simple if-else statement was still evaluating value1 &amp;gt; value2 value.&lt;br /&gt;&lt;br /&gt;So Matlab had determined that 1.15 was bigger than value2. I clearly could not see why at the time until I thought of this:&lt;br /&gt;&lt;br /&gt;I had to rectify the situation by introducing something like this:&lt;br /&gt;&lt;br /&gt;if abs(value1 - value2) &amp;lt; 0.00000005&lt;br /&gt;&lt;br /&gt;The lesson I learned was that MATLAB stored some digit(s) far into the nth decimal place on value1 but did not print them. &lt;br /&gt;&lt;br /&gt;I am uncertain about the precision functions in matlab and have inspected them while tackling this issue.</description>
  <comments>http://community.livejournal.com/matlab/13353.html</comments>
  <lj:mood>contemplative</lj:mood>
  <lj:security>public</lj:security>
  <lj:poster>katiecam</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/13192.html</guid>
  <pubDate>Tue, 05 Jul 2005 08:51:52 GMT</pubDate>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/13192.html</link>
  <description>Hi guys!&lt;br /&gt;I&apos;m using MATLB7 and I have some trouble in MATLAB GUI programming, and there is no answer for it in Google, so I would be very grateful for your help.&lt;br /&gt;&lt;br /&gt;I have made GuidemoMY.fig figure file and its corresponding GuidemoMY.m file was created.&lt;br /&gt;GuidemoMY.fig contains several edit boxes (text fields for user input) which are initialized to some values, and one RUN pushbutton, that has callback function myRun(...) which has to retrieve those edit boxes values.&lt;br /&gt;&lt;br /&gt;The problem is, that myRun(..) cannot read those values from &apos;handles&apos; structure passed to it. &lt;br /&gt;I don&apos;t know why, but before the apperance of callback function declaration and body, the &apos;handles&apos; structure IS recognized, and the command&lt;br /&gt; a = get(handles.figure1Probab,&apos;String&apos;); &lt;br /&gt;is successfully evaluated and returns string value of edit box with &apos;figure1Pribab&apos; tag.&lt;br /&gt;BUT same line INSIDE body of myRun(..) callback (which is successfully called after pressing the RUN button on GUI figure) -- is not evaluated,&lt;br /&gt;and I get &quot;invalid handle object&quot; error, although &apos;handles&apos; IS NOT EMPTY (I checked it in DEBUG mode).&lt;br /&gt;&lt;br /&gt;What the hell is happenning and how can I retrieve the edit box values inside my callback?&lt;br /&gt;&lt;br /&gt;Thank you very much!!</description>
  <comments>http://community.livejournal.com/matlab/13192.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>polubes</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/12986.html</guid>
  <pubDate>Fri, 24 Jun 2005 02:51:58 GMT</pubDate>
  <title>excel add-in</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/12986.html</link>
  <description>I have a student copy and the matlab site says student version cannot use the excel add-in.&lt;br /&gt;&lt;br /&gt;Is there anyway around this or being able to import data easily from excel into matlab?</description>
  <comments>http://community.livejournal.com/matlab/12986.html</comments>
  <lj:mood>cranky</lj:mood>
  <lj:security>public</lj:security>
  <lj:poster>katiecam</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/12590.html</guid>
  <pubDate>Fri, 20 May 2005 21:10:14 GMT</pubDate>
  <title>Matlab on OS X</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/12590.html</link>
  <description>So I just got a computer with OS X Tiger (10.4.1) on it, and am having some trouble getting Matlab to go.  I am still running R13, which looks like it may not work with OS X on the Mathworks website.  But a friends R14SP1 didn&apos;t do any better.  I have loaded X11, and when I click on the install button, nothing happens.&lt;br /&gt;&lt;br /&gt;Any guesses?</description>
  <comments>http://community.livejournal.com/matlab/12590.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>coliningus</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/12411.html</guid>
  <pubDate>Thu, 05 May 2005 23:18:27 GMT</pubDate>
  <title>fft</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/12411.html</link>
  <description>Okay, I&apos;m overly confused by this problem, which should be simple, and maybe it&apos;s because I&apos;m not sure I completely understand how fft works. So I have this sine wave: x(n) = 2.5 sin(2*pi*n*dt/64), where dt = .1 and n ranges from 0 to 1023 (so that there are 1024 observations and I think that dt means that there are 1024 observations in .1 s). &lt;br /&gt;&lt;br /&gt;I&apos;m trying to find the frequency, amplitude and phase and x(n) and then find its Fourier series coefficients. Okay, so I went ahead and applied fft(x). The peak is kind of assymmetric I think because the observation includes more than just one period of a sine wave. Anyway, I multiplied the output by 2/1024 and I looked at the peak. Well, the magnitude of this value isn&apos;t 2.5 (more like 1.7) and I think it&apos;s because that we have these extra observations, where x(1023) &amp;lt; 0. Also, I thought that the frequency would be at 1/64 -at the peak but it wasn&apos;t. So now I&apos;m not even sure I made this list of frequencies correctly. argh. I found the phase using matlab help but I&apos;m not quite sure what it means. As for the Fourier coefficients, isn&apos;t the fft*2/N the fourier coefficients? And you just take either the real or imaginary parts? If anyone can help, I&apos;d greatly appreciate it.&lt;br /&gt;&lt;br /&gt;update: NM- I figured it out- basically my resolution on the fft was too low and I needed to up the number of points past 1024.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here&apos;s a little code if you have any clue how to help.&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;dt = .1; %s&lt;br /&gt;n = 0:1:1023; %1024 observations between t = 0 and t = .1 s.&lt;br /&gt;&lt;br /&gt;%In the code, x(1) is equal to x_0 at n = 0. &lt;br /&gt;x = 2.5*sin(2*pi*n*dt/64);&lt;br /&gt;fftx = fft(x); &lt;br /&gt;m = fftx;&lt;br /&gt;&lt;br /&gt;%determine the phase angle of the harmonic&lt;br /&gt;p = unwrap(angle(fftx));&lt;br /&gt;w = (0:length(fftx)-1)&apos;*100/length(fftx); %the frequencies&lt;br /&gt;m = m*2/length(n); %output of the fft*2/1024&lt;br /&gt;&lt;br /&gt;%plot the function&lt;br /&gt;figure(1), subplot(2,1,1), plot(n*dt/1023, x)&lt;br /&gt;ylabel(&apos;x_n&apos;)&lt;br /&gt;xlabel(&apos;Time (s)&apos;)&lt;br /&gt;title(&apos;Plot of the observed x_n&apos;)&lt;br /&gt;&lt;br /&gt;figure(2)&lt;br /&gt;subplot(2,1,1), plot(w,abs(m)), &lt;br /&gt;ylabel(&apos;Abs. Magnitude&apos;), grid on&lt;br /&gt;xlabel(&apos;Frequency [Hertz]&apos;)&lt;br /&gt;axis([0 10 0 3])&lt;br /&gt;subplot(2,1,2), plot(w,p*180/pi)&lt;br /&gt;ylabel(&apos;Phase [Degrees]&apos;), grid on&lt;br /&gt;xlabel(&apos;Frequency [Hertz]&apos;)&lt;br /&gt;</description>
  <comments>http://community.livejournal.com/matlab/12411.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>ko</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/12277.html</guid>
  <pubDate>Wed, 06 Apr 2005 17:32:56 GMT</pubDate>
  <title>3d scatter</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/12277.html</link>
  <description>this should be a fairly straightforward question: how would I go about plotting a 3D scatter plot in Matlab? thanks!</description>
  <comments>http://community.livejournal.com/matlab/12277.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>mule13</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/11895.html</guid>
  <pubDate>Tue, 29 Mar 2005 01:46:26 GMT</pubDate>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/11895.html</link>
  <description>Anyone know where I can find a MATLAB GS(A) function that does the Gram-Schmidt process on the columns of a matrix? I tried to program it myself...but the loops are infinitely confusing</description>
  <comments>http://community.livejournal.com/matlab/11895.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>koreangel256</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/11712.html</guid>
  <pubDate>Tue, 22 Feb 2005 05:21:58 GMT</pubDate>
  <title>I was referred here.</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/11712.html</link>
  <description>Hi.  I&apos;m relatively new to Matlab and I&apos;m trying to work with GUI pop-ups.  What I am attempting to do is create a pop-up message window that provides the user with seven lines of information to verify and two buttons where the user can either confirm or change the information.  Unfortunately, all I can find is&lt;br /&gt;&lt;dl&gt;&lt;br /&gt;&lt;dt&gt;&lt;font face=&quot;courier new&quot;&gt;msgboxtext=char(text1,text2);&lt;br /&gt;uiwait(msgbox(&apos;text, &apos;title&apos;))&lt;/font&gt;&lt;br /&gt;&lt;dd&gt;to get an information pop-up with an &quot;OK&quot; button&lt;br /&gt;&lt;br /&gt;&lt;dt&gt;and&lt;br /&gt;&lt;br /&gt;&lt;dt&gt;&lt;font face=&quot;courier new&quot;&gt;confirm=menu(&apos;information&apos;, &apos;confirm&apos;, &apos;change&apos;)&lt;/font&gt;&lt;br /&gt;&lt;dd&gt;to get an information pop-up with only one line of information and &quot;Confirm&quot; and &quot;Change&quot; buttons&lt;br /&gt;&lt;/dl&gt;&lt;br /&gt;Can you help me?&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;So far, I have succeeded in making a 7-line MENU.  It looks hideous, as you can see.&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://img.photobucket.com/albums/v34/almond_roca/Web%20Graphics/ugly_menu.gif&quot;&gt;&lt;br /&gt;&lt;br /&gt;What do you suggest I do to tidy it up?   Ordinarily, I would just accept this, but the problem is, the way I set up my text, it&apos;s an 8 x 2 matrix.  My placeholder for the last line is a one-space string, but if the user inputs two-digit data values, the box won&apos;t work. I considered using a &lt;font face=&quot;courier new&quot;&gt;for&lt;/font&gt; loop using the &lt;font face=&quot;courier new&quot;&gt;length&lt;/font&gt; command, but is there an easier way?&lt;br /&gt;&lt;br /&gt;Thank you fellow engineers.&lt;br /&gt;&lt;br /&gt;&lt;/dt&gt;&lt;/dt&gt;&lt;/dt&gt;&lt;/dd&gt;&lt;/dd&gt;</description>
  <comments>http://community.livejournal.com/matlab/11712.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>almond_roca</lj:poster>
</item>
<item>
  <guid isPermaLink='true'>http://community.livejournal.com/matlab/11336.html</guid>
  <pubDate>Wed, 09 Feb 2005 23:04:18 GMT</pubDate>
  <title>homework help</title>
  <author>vortexshedding@hotmail.com</author>  <link>http://community.livejournal.com/matlab/11336.html</link>
  <description>I&apos;m having trouble with the following problem.  I tried to write a loop so that an error warning would print each time the robot was at a border and would move in the -1 direction (outside of the matrix) but it just stops the loop then I have to start all over again.  I&apos;m trying to fix the problem right now but don&apos;t know how.  Any tips?  I&apos;m new to MATLAB but am eager to learn and understand any advice you might have.&lt;br /&gt;&lt;br /&gt;I am also offering baked goods in return for your help!&lt;br /&gt;&lt;br /&gt;&lt;a name=&quot;cutid1&quot;&gt;&lt;/a&gt;&lt;br /&gt;The problem is to write a program to simulate the motion of a robot between a room that us 5 meters long by 5 meters wide.  This will be represented by a matrix 5X5 and the robot will move from the coordinate (1,1) to coordinate (5,5).  The motion from one block to the next is going to be random and require a direction.  For example, a one-dimensional move could be modeled with a code like:&lt;br /&gt;&lt;br /&gt;function z=dice_move&lt;br /&gt;% z is a random number generated it could be -&amp;gt; -1 0 1&lt;br /&gt;x=3*rand&lt;br /&gt;x1=ceil(x)&lt;br /&gt;value=[-1 0 1]&lt;br /&gt;z=value(x1)&lt;br /&gt;&lt;br /&gt;Taking the assumption that the tobot is free to move backward or forward.&lt;br /&gt;&lt;br /&gt;Write the code to do the trip from the initial point to final point.  Use the dice_move as part of the movement of the robot.&lt;br /&gt;&lt;br /&gt;(a) Include a flowchart to see the planning for the program.  This flowchart should be changing as you find problems or better ways to do something.&lt;br /&gt;(b) Write your final code in MATLAB using a script to run the functions created.&lt;br /&gt;(c) The code should start at (1,1) and move until it gets to (5,5).  Record the number of times it needs to get to (5,5).  The script file should program 50 runs to be able to get a mean about how long it takes usually (mean), the maximum (max), and the minimum.&lt;br /&gt;&lt;br /&gt;&lt;center&gt;&lt;img src=&quot;http://chuckcity.com/Heather/matlab.bmp&quot;&gt;&lt;/center&gt;</description>
  <comments>http://community.livejournal.com/matlab/11336.html</comments>
  <lj:security>public</lj:security>
  <lj:poster>heatherengineer</lj:poster>
</item>
</channel>
</rss>
