[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57774] fullfile error with cell array input o
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #57774] fullfile error with cell array input other than last |
Date: |
Sun, 29 Mar 2020 07:18:06 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0 |
Follow-up Comment #7, bug #57774 (project octave):
I like the fact that you added some input validation.
However, your implementation doesn't look very efficient. Loops (especially
nested loops) should be avoided if possible because they tend to be slow in .m
files.
I haven't thought it through completely yet. But shouldn't it be possible to
do what you want by some clever use of "strcat"?
Take e.g. this:
> strcat({'a', 'b'}, 'c', {'d', 'e'})
ans =
{
[1,1] = acd
[1,2] = bce
}
It looks like it does already most of what is needed here.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57774>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/