This case is minimal:
testb.m (363 Bytes)
Maybe I’m using the ‘struct’ wrongly somehow…
I guess it needs ‘zero padding’ adding somehow to make it same length.
It is maybe quite difficult to padding the zeroes…
So I will just change the strategy:
This would work:
testc.m (425 Bytes)
but in latter case some issues with ‘stairs’:
error: stairs: X and Y must be numeric 2-D vectors or matrices
error: called from
stairs>__stairs__ at line 126 column 7
stairs at line 104 column 17
wp at line 86 column 12
/home/jari/bin/view_digs.m at line 139 column 1
If in case of ‘stairs’ or ‘plot’ as below:
plot (x, y, “or”, x, y2, x, y3, “m”, x, y4, “+”)
how can I enter the structure here (where each x-y -pair has different length)?
latter case it should work maybe as ‘plot(ts,vs)’, but not possible…
The ‘stairs’ can be handled inside the loop as:
if I use the ‘hold on’, it can plot them one by one in same window/field.
i think it is solved by changing different method (using with ‘hold on’).
This case it looks more complicated form is needed:
where it can not be directly entered in to the plot with the stairs…
Of course the same marking has different meaning when at the left of the ‘=’ sign and when at the right of the equal sign:
[pt, vt]=[5, 1]
error: invalid number of output arguments for constant expression