Difference between revisions of "Error Messages/40179"

 
Line 1: Line 1:
= Error Message Examples =
+
[[Category: Error messages]]
  
  The first parameter to [[Slice]](a,n) has more than one dimension.
+
== Error message examples ==
 +
 
 +
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
  The first parameter to Slice(a, n) has more than one dimension.
 
  The two parameter form of Slice requires the first parameter to be an index, list, or
 
  The two parameter form of Slice requires the first parameter to be an index, list, or
  one-dimensional array. Use the three parameter form, [[Slice]](a,J,n), and
+
  one-dimensional array. Use the three parameter form, Slice(a, J, n), and
 
  specify the slice dimension as a second parameter.
 
  specify the slice dimension as a second parameter.
 +
</pre>
  
= Cause =
+
== Cause ==
  
 
The first parameter passed to the [[Slice]] function is multidimensional, and no index to be sliced over was passed. When using [[Slice]] with a multidimensional variable, you need to specify the index to slice over as the second parameter.
 
The first parameter passed to the [[Slice]] function is multidimensional, and no index to be sliced over was passed. When using [[Slice]] with a multidimensional variable, you need to specify the index to slice over as the second parameter.
  
Click [[Slice#Examples|here]] for examples of using the Slice function.
+
== Remedy ==
 
 
= Remedy =
 
  
 
Pass in the index to be used to [[Slice]] the multidimensional variable.
 
Pass in the index to be used to [[Slice]] the multidimensional variable.
  
<br> <comments />
+
==See Also==
 +
* [[Slice]]
 +
* [[Arrays and Indexes]]
 +
* [[Function calls and parameters]]

Latest revision as of 23:52, 21 March 2016


Error message examples

 The first parameter to Slice(a, n) has more than one dimension.
 The two parameter form of Slice requires the first parameter to be an index, list, or
 one-dimensional array. Use the three parameter form, Slice(a, J, n), and
 specify the slice dimension as a second parameter.

Cause

The first parameter passed to the Slice function is multidimensional, and no index to be sliced over was passed. When using Slice with a multidimensional variable, you need to specify the index to slice over as the second parameter.

Remedy

Pass in the index to be used to Slice the multidimensional variable.

See Also

Comments


You are not allowed to post comments.