<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<BR>
 <BR>
I want to create a matrix based on a vector. It is difficult to describe the issue for me in english. Here is an example. <BR>
 <BR>
Suppose I have an array([3, 6, 8, 12]), I want to create a range based on each element. In this exampe, let us say want to create 4 number with step 2, so I will have<BR>
 <BR>
[3, 6, 8, 12<BR>
 5, 8, 10,14<BR>
 7, 10,12,16<BR>
 9, 12,14,18]<BR>
 <BR>
It is a 4 by 4 maxtric in this example. My original array is quite large. but the range I want to create around the number is not big, it is about 30. <BR>
 <BR>
Does anyone know how to do this efficiently?<BR>
 <BR>
Thanks<BR>
 <BR>
Frank<BR><br /><hr />Send e-mail faster without improving your typing skills. <a href='http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_speed_122008' target='_new'>Get your HotmailŪ account.</a></body>
</html>