From: Charles on
Again, the data which doesn't look organised when I post it.
-2.99 0
-2.4805 0.002
-1.9711 0.009
-1.4616 0.020211
-0.95211 0.037895
-0.44263 0.082421
0.066842 0.17721
0.57632 0.30842
1.0858 0.44874
1.5953 0.58121
2.1047 0.69558
2.6142 0.78242
3.1237 0.84037
3.6332 0.88074
4.1426 0.91695
4.6521 0.95016
5.1616 0.97679
5.6711 0.991
6.1805 0.997
6.69 1

Charles
From: Jonas Lundgren on
"Charles " <nkwosman(a)yahoo.com> wrote in message <htlsg5$4nl$1(a)fred.mathworks.com>...
> Again, the data which doesn't look organised when I post it.
> -2.99 0
> -2.4805 0.002
> -1.9711 0.009
> -1.4616 0.020211
> -0.95211 0.037895
> -0.44263 0.082421
> 0.066842 0.17721
> 0.57632 0.30842
> 1.0858 0.44874
> 1.5953 0.58121
> 2.1047 0.69558
> 2.6142 0.78242
> 3.1237 0.84037
> 3.6332 0.88074
> 4.1426 0.91695
> 4.6521 0.95016
> 5.1616 0.97679
> 5.6711 0.991
> 6.1805 0.997
> 6.69 1
>
> Charles

Hi Charles,
If the first column is uniformly spaced then you need only the first and the last point of this column. Compress by:

A = [A(1,1); A(end,1); A(:,2)];

and uncompress by:

A = [linspace(A(1),A(2),numel(A)-2)', A(3:end)];

/Jonas
From: Jonas Lundgren on
"Charles " <nkwosman(a)yahoo.com> wrote in message <htlsg5$4nl$1(a)fred.mathworks.com>...
> Again, the data which doesn't look organised when I post it.
> -2.99 0
> -2.4805 0.002
> -1.9711 0.009
> -1.4616 0.020211
> -0.95211 0.037895
> -0.44263 0.082421
> 0.066842 0.17721
> 0.57632 0.30842
> 1.0858 0.44874
> 1.5953 0.58121
> 2.1047 0.69558
> 2.6142 0.78242
> 3.1237 0.84037
> 3.6332 0.88074
> 4.1426 0.91695
> 4.6521 0.95016
> 5.1616 0.97679
> 5.6711 0.991
> 6.1805 0.997
> 6.69 1
>
> Charles

Hi Charles,
If the first column is uniformly spaced then you need only the first and the last point of this column. Compress by:

A = [A(1,1); A(end,1); A(:,2)];

and uncompress by:

A = [linspace(A(1),A(2),numel(A)-2)', A(3:end)];

/Jonas
From: Charles on
I think your suggestion is good. And actually, I am using exactly the same thing already and still used the 2 columns. Thanks a lot.


"Jonas Lundgren" <jonas.lundgren(a)saabgroup.com> wrote in message <htltc8$5el$1(a)fred.mathworks.com>...
> "Charles " <nkwosman(a)yahoo.com> wrote in message <htlsg5$4nl$1(a)fred.mathworks.com>...
> > Again, the data which doesn't look organised when I post it.
> > -2.99 0
> > -2.4805 0.002
> > -1.9711 0.009
> > -1.4616 0.020211
> > -0.95211 0.037895
> > -0.44263 0.082421
> > 0.066842 0.17721
> > 0.57632 0.30842
> > 1.0858 0.44874
> > 1.5953 0.58121
> > 2.1047 0.69558
> > 2.6142 0.78242
> > 3.1237 0.84037
> > 3.6332 0.88074
> > 4.1426 0.91695
> > 4.6521 0.95016
> > 5.1616 0.97679
> > 5.6711 0.991
> > 6.1805 0.997
> > 6.69 1
> >
> > Charles
>
> Hi Charles,
> If the first column is uniformly spaced then you need only the first and the last point of this column. Compress by:
>
> A = [A(1,1); A(end,1); A(:,2)];
>
> and uncompress by:
>
> A = [linspace(A(1),A(2),numel(A)-2)', A(3:end)];
>
> /Jonas
From: us on
"Charles " <nkwosman(a)yahoo.com> wrote in message <htlvds$l2$1(a)fred.mathworks.com>...
> I think your suggestion is good. And actually, I am using exactly the same thing already and still used the 2 columns. Thanks a lot.

???
firstly, how is this going to help with respect to your original problem (as stated in the OP)...
then, how do you get from your exemplary A1 -> A2 using this approach...

us