help-octave
[Top][All Lists]
Advanced

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

Fwd: How to read data from a text file based on the title?


From: Nicholas Jankowski
Subject: Fwd: How to read data from a text file based on the title?
Date: Thu, 14 Feb 2019 06:05:27 -0500

Please keep the help list copied on all emails. The convention of this list is also to trim reply text and bottom post (this paragraph is top posting)

On Thu, Feb 14, 2019, 03:23 Mohammed Atta <address@hidden wrote:
In the first "sample01.txt" there are two columns. One is for T[K] and another one is for mole concentration. In "sample01.txt" data for 3 species are piled vertically.
On the other file "sample02.txt" all the columns are arranged side by side with only one T[K] column which is common for all the species.
The third file (Composed_matrix_sample01_sample02.png) shows how I want to merge data from two files. If there are three species (in "sample01.txt") i want three matrix like the sample that i gave in Composed_matrix_sample01_sample02.png.

It is easy to do it in MATLAB. If you want i can provide a more comprehensive explanatory code for MATLAB.

Here, I such a solution.



What I was hoping for was a minimal example that just highlighted the problem area. You're code fails at splitapply because Octave does not have that function. The behavior can probably be emulated using some other functions. But right now we'd have to walk through all of your code to see what you're actually doing at that step, and then guess at why. 


reply via email to

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