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: Markus Mützel
Subject: [Octave-bug-tracker] [bug #60873] Feature request: combine system and dlmread if viable
Date: Sat, 3 Jul 2021 02:42:30 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 Edg/91.0.864.64

Follow-up Comment #3, bug #60873 (project octave):

Just a thought. Maybe you could split parsing the output into two steps:
1. Split the output into the separate lines for each solution.
2. Parse each line with an appropriate format string.

That could maybe look similar to this:

output = sprintf('1 2 3 4\n1 4 2\n');

output_lines = strsplit(output, '\n');

for i_solutions = 1:numel(output_lines)
  solution(i_solutions) = textscan(output_lines{i_solutions}, '%d');
endfor




    _______________________________________________________

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]