|
From: | Ganesh Kini |
Subject: | Re: How to compare the colums ( 2nd and 3rd) of 2 .csv files based on a condition |
Date: | Wed, 24 Jun 2020 17:09:03 +0200 |
Again, please stop top-posting your replies -- I click on the latest email and then click on reply all. Because I don't have access on octave to post directly. I have requested earlier but no responseSo for the answer of data1
data1 = textscan (file1, "%s,%f,%f,%d \n" , "HeaderLines" , 1, "Delimiter" , "," )>> data1
data1 =
{
[1,1] =
{
[1,1] = tb
[2,1] = tb
[3,1] = tb
[4,1] = ta
[5,1] = ta
[6,1] = tc
[7,1] = tc
[8,1] = tc
}
[1,2] =
1.070000
0.070000
1.170000
1.270000
1.3700001.470000
1.470000
1.670000
[1,3] =
-1.1100
-1.2300
-1.6700
-1.5700
-1.3700
-1.0700
-1.4700
-3.9700
[1,4] =
1
2
3
1
2
1
2
3
}On Wed, Jun 24, 2020 at 3:12 PM Nicholas Jankowski <jankowskin@asme.org> wrote:On Wed, Jun 24, 2020, 5:10 AM Ganesh Kini <ganeshrkini19@gmail.com> wrote:results: for file 1[1,1] =
{
[1,1] = tb
[2,1] = tb
[3,1] = tb
[4,1] = ta
[5,1] = ta
[6,1] = tc
[7,1] = tc[8,1] = tc}condition1 = cell2mat(data1{1})errorerror: cat: dimension mismatch
error: called from
cell2mat at line 80 column 11
fileoopencheck at line 27 column 12Again, please stop top-posting your replies.After loading the data, what is the output of:>> data1and>> data1{1}
[Prev in Thread] | Current Thread | [Next in Thread] |