[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #8656] Variable Editor (expanded from Patc

From: Philip Nienhuis
Subject: [Octave-patch-tracker] [patch #8656] Variable Editor (expanded from Patch #8316)
Date: Sun, 23 Aug 2015 13:00:12 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 SeaMonkey/2.33.1

Follow-up Comment #37, patch #8656 (project octave):

I had time to compare a few things with Matlab (r2015b prerelease).

Clearing a cell in a cell array sets the cell to empty
Sets cell contents to numeric zero

shows a text string as a string in one cell
shows it as a an array of chars


a = {1 {'TL', 'TR'; 'BL', 'BR'}; 'text', [10, 20 25 35 45; 30 40 45 55 65]}

shows the nested cell array as "2x2 cell" (w/o double quotes);
shows numeric array as far as it fits (truncates contents)
shows cell contents
shows numeric array as far as it fits (truncates contents) - Good!

a = struct ('b', 'field1')
a.c = [1 2; 3 4]
a.d = {1, 'text'; [10 20], {'TL', 'TR'; 'BL', 'BR'}}

gives the output of struct1.png (attached)

a(2).b = 'field2'

gives struct2.png
Double-clicking field a(1).d (~cell 1, 3) gives struct3.png

So maybe maybe (but obviously you know it better) displaying structs doesn't
have to be that difficult and could be fairly straightforward.

(file #34700, file #34701, file #34702)

Additional Item Attachment:

File name: struct1.png                    Size:39 KB
File name: struct2.png                    Size:43 KB
File name: struct3.png                    Size:40 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]