Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Skipped if statements
Date: Thu, 29 Oct 2009 12:38:01 +0000 (UTC)
Organization: Erasmus MC
Lines: 14
Message-ID: <hcc2b9$kf$1@fred.mathworks.com>
References: <hcb1qm$958$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256819881 655 172.30.248.35 (29 Oct 2009 12:38:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 29 Oct 2009 12:38:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 870065
Xref: news.mathworks.com comp.soft-sys.matlab:580941


"Jason Mickey" <jmick175@gmail.com> wrote in message <hcb1qm$958$1@fred.mathworks.com>...
* snip*

> Also, is there a way to title my figure with the value of t encoded in it? I tried
> 
> title('t = %1.3f',t)

TITLE expects a string as input. Take a look at SPRINTF.

STR = sprintf('t  %1.3f',t) 
title (STR)

hth
Jos