Re: [Jprogramming] Adding leading zeros

2019-02-03 Thread David Porter
Hi Skip, Try this: lz=: 3 : 0 ,' '([,.~ -.~"1) ":10#.^:_1 y )      lz 1 20 300 4000 5 1 00020 00300 04000 5 Good Luck, Dave On 2/3/2019 2:15 PM, 'Skip Cave' via Programming wrote: Paolo and Devon provided the named dyadic verbs Fill and lead0s that perform the function I spe

Re: [Jprogramming] Complex functions visualization

2017-04-13 Thread David Porter
Thanks for the grey palettes. Being colorblind, I miss some of the information in the color plots, even though I think they are prettier. Dave On 4/13/2017 8:20 AM, Andrew Nikitin wrote: I have updated phase portraits page http://code.jsoftware.com/wiki/User:Andrew_Nikitin/Phase_portraits

Re: [Jprogramming] Even partitions

2016-05-20 Thread David Porter
Groups based on what? Dave On 5/20/2016 10:11 AM, Devon McCormick wrote: I have a few thousand photos I want to put into a small number of groups as equally-sized as possible. It looks like a knapsack problem but I only need to get within some tolerant equality. Has anyone done something like

Re: [Jprogramming] J Symbols

2013-04-10 Thread David Porter
I sent this in yesterday, but didn't see it. My apologies if I have posted it twice. I have made dots bigger by diddling the font. As long we are talking of new fonts, this is what I reported in 2009: As we teach ourselves to read without consciously noticing the punctuation, it initially b

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-02 Thread David Porter
The problem I faced in MatLab was to provide temperature data from an infra-red camera. The data from the camera was in the Air Force's Standard Archive Format(SAF) that allows all the raw data, calibration constants, and much ancillary data (such as data units, classification, and data type)

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-01 Thread David Porter
since we don't have the concept of name1.name2.name3... levels. Instead look at the problem to be solved and see how best that would be done in J. On Sat, Feb 2, 2013 at 11:49 AM, David Porter wrote: Thanks Raul. That did help a little. What has me now is how to get the followin

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-01 Thread David Porter
pts. Hope this helps. Cheers, bob On 2013-02-01, at 7:49 PM, David Porter wrote: Thanks Raul. That did help a little. What has me now is how to get the following: q1.tests.test1 q1.tests.test2 q1.tests.test3 Under each of the three tests there will be multiple named variables. If I under

Re: [Jprogramming] How best to Port MatLab structure to J

2013-02-01 Thread David Porter
Thanks Raul. That did help a little. What has me now is how to get the following: q1.tests.test1 q1.tests.test2 q1.tests.test3 Under each of the three tests there will be multiple named variables. If I understand what coinsert does correctly, that is to put a new locale on the search path b

[Jprogramming] How best to Port MatLab structure to J

2013-02-01 Thread David Porter
I am trying to port some old code from MatLab to J. It seems that it should be easy, but I am finding one aspect of it difficult. In MatLab I used their data structure with several sub-levels. Four features seemed very nice to me: 1, Many constants could be associated with a single overall