Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: conversion to single = out of memory?
Date: Sat, 11 Jul 2009 00:25:04 +0000 (UTC)
Organization: Battelle Energy Alliance (INL)
Lines: 3
Message-ID: <h38m50$a4h$1@fred.mathworks.com>
References: <9uidnShmm_94SMrXnZ2dnUVZ_t-dnZ2d@giganews.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 1247271904 10385 172.30.248.35 (11 Jul 2009 00:25:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 11 Jul 2009 00:25:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 688530
Xref: news.mathworks.com comp.soft-sys.matlab:554612


Try this:

tempdata = zeros(size(data),'single');