Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Dataset array error using "replacedata" function
Replies: 3   Last Post: Nov 11, 2013 3:10 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Graham

Posts: 20
Registered: 9/29/09
Dataset array error using "replacedata" function
Posted: Nov 23, 2012 4:56 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,

I'm trying to use the function "replacedata" for a dataset array (http://www.mathworks.com/help/stats/dataset.replacedata.html). When I run the following example code:

data = dataset({rand(3,3),'Var1','Var2','Var3'})
data = replacedata(data,@zscore)

I get an error:

??? Error using ==> dataset.replacedata at 35
X must have the same number of rows as A has observations.

Please help?

Many thanks



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.