[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help-octave Digest, Vol 11, Issue 59
From: |
Thomas Schmelzer |
Subject: |
Re: Help-octave Digest, Vol 11, Issue 59 |
Date: |
Tue, 27 Feb 2007 06:46:46 +0000 |
Dear Experts,
I am a volunteer teaching assistant at the AIMS, an ambitious project to teach
the best students from all over Africa.
People here use Python and Octave. I am very familiar with MATLAB and have
some difficulties to adapt some
MATLAB code to Octave. Here is a tiny fragment that does not work in Octave.
Your help is very appreciated.
Best,
Thomas
I am plotting two columns of the matrix X, all columns represent a function
sampled at t
% I don't know how to make lines more thick?
plot(t, X(S1,1:end), t, X(S2,1:end), '--', 'LineWidth',3 );
% It works without the FontSize command.
xlabel('Time', 'FontSize', 18)
ylabel('Number', 'FontSize', 18)
% I couldn't get legend to work at all
legend('Susceptible','Infected')
% Title with multiple lines and other kinky stuff
title({['SIR model, L.J.S. Allen, p.286'];['\beta=', num2str
(beta), '; ', '\gamma=', num2str(gamma), '; ', 'R_0=', num2str
(R0), '; ', 'N=', num2str(N_total)]},'FontSize', 18);
--
Thomas Schmelzer
Balliol College, Oxford University Computing Laboratory
Office: 0044 1865 283575, Mobile: 0044 7789 778187
http://web.comlab.ox.ac.uk/thomas.schmelzer/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Help-octave Digest, Vol 11, Issue 59,
Thomas Schmelzer <=