[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem plotting "N-d object"
From: |
Ben Abbott |
Subject: |
Re: problem plotting "N-d object" |
Date: |
Fri, 17 Feb 2012 14:17:22 -0500 |
On Feb 17, 2012, at 1:35 PM, CdeMills wrote:
> bpabbott wrote
>
>> On Feb 17, 2012, at 11:59 AM, Jordi Gutiérrez Hermoso wrote:
>>
>> Jordi,
>>
>> Any concerns about something like the attached ?
>
> Yes. squeezing should not be automatic. Maybe the array is N-d in the first
> place because there was a bug in the script, and it was not the author's
> intent to have an array with more than two dimensions.
>
> IMHO, it should be the responsability of the author to squeeze the array
> before calling plot. Another option would be to implement a "squeezable"
> class, that is, a N-D array with the property that it's squeezed when at
> least one of the indexes of the selection is a singleton. Only the subsref
> method should be modified.
>
> Regards
>
> Pascal
I'm not really concerned about buggy code accidentally triggering this
functionality. At the same time, if such a change is accepted, then it needs to
be documented and demos should be needed.
I'm not sure a new squeezable N-D array will do the job in a clean way. Maybe
I'm missing something? Are you thinking of overloading the plot function?
Ben
- problem plotting "N-d object", Sergei Steshenko, 2012/02/17
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/17
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/17
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/17
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/17
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/17
- Re: problem plotting "N-d object", CdeMills, 2012/02/17
- Re: problem plotting "N-d object",
Ben Abbott <=
- Re: problem plotting "N-d object", CdeMills, 2012/02/18
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/18
- Re: problem plotting "N-d object", Jordi Gutiérrez Hermoso, 2012/02/18
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/19
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", Ben Abbott, 2012/02/19
- Re: problem plotting "N-d object", CdeMills, 2012/02/19
- Re: problem plotting "N-d object", Sergei Steshenko, 2012/02/19
- Re: problem plotting "N-d object", CdeMills, 2012/02/20