octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #60873] Feature request: combine system and dl


From: anonymous
Subject: [Octave-bug-tracker] [bug #60873] Feature request: combine system and dlmread if viable
Date: Thu, 1 Jul 2021 21:41:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Android 8.0.0; Mobile; rv:89.0) Gecko/89.0 Firefox/89.0

URL:
  <https://savannah.gnu.org/bugs/?60873>

                 Summary: Feature request: combine system and dlmread if
viable
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 02 Jul 2021 01:41:52 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

I find myself using this pattern a lot:


% create a file called file.ext here and call an external program on it
system ("externalprogram file.ext >out");
output = dlmread ("out");


It's not currently possible but it would be desirable to avoid the file
system. It doesn't seem possible with

[~,output] = system ("externalprogram file.ext");
output = str2num (output);


which only gives an empty output because the lines are uneven lengths and
str2num doesn't pad it to zeros.

Maybe an extra flag to system to indicate that the output should have dlmread
or other specified function called on it without the overhead of going through
the file system? Is the above reasonable and viable, or will it be too much
effort?







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?60873>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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