Path: news.mathworks.com!newsfeed-00.mathworks.com!solaris.cc.vt.edu!news.vt.edu!news.glorb.com!news2.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!backlog2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 10 Jul 2009 18:59:33 -0500
Date: Fri, 10 Jul 2009 19:59:32 -0400
From: MZ <mark@nospam.void>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: conversion to single = out of memory?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <9uidnShmm_94SMrXnZ2dnUVZ_t-dnZ2d@giganews.com>
Lines: 13
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-6ubG+bBH1t9+zZVa43Opi4C1x62h5n3dDVm1vn4K70/Ccq2mmkNYYoz9ycsAjSdj2q6kSrlzUp1mTtk!NzHVRGVoJc/pdpv6rGwbWirOTjEfyCGHZSOe+hrZ0pvy2qZDgboAvlPx1/n6zLxE/j7YNB9p5hZx!1Q==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.39
X-Original-Bytes: 1338
Xref: news.mathworks.com comp.soft-sys.matlab:554608


Strange problem.

When I create a variable this way...

	tempdata = zeros(size(data));

...everything works fine.  But when I modify the code in this way...

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

...I get an out of memory error.

Any ideas what's going on?