MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Span Set nasty bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123809] Re: Span Set nasty bug
  • From: Shizu <slivo.vitz at msa.hinet.net>
  • Date: Tue, 20 Dec 2011 03:04:42 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

But what do you mean by t[[1;;0,1;;1]]?
Could a Span be from 1 to 0?
I've never seen this before.
Can't find an usage/example in Mathematica documents.

This is how I use Span for a matrix:

In[]= t = {{1, 2, 3, 4}, {5, 6, 7, 8}}
Out[]= {{1, 2, 3, 4}, {5, 6, 7, 8}}

In[]= t[[1 ;; 2, 2 ;; 3]] = a
Out[]= a

In[]= t
Out[]= {{1, a, a, 4}, {5, a, a, 8}}



  • Prev by Date: import issue
  • Next by Date: Fourier Cos transform
  • Previous by thread: Re: Span Set nasty bug
  • Next by thread: Re: Span Set nasty bug