Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
segmentation

Subject: segmentation

From: muzaffar

Date: 10 Feb, 2009 11:56:02

Message: 1 of 1

Hi, everybody,
I need segmentation of a signal into its parts which are separated by a baseline.
Advance thanks for help.

I have the following variable
mn =

   -0.1628
   -0.1316
   -0.1132
   -0.1013
   -0.1170
   -0.0176
    0.1013
    0.0398
   -0.0590
   -0.0197
    0.1001
    0.3198
    0.5114
    0.3324
   -0.0397
   -0.2568
   -0.1618
    0.0789
    0.2219
    0.3424
    0.4155
    0.2920
   -0.1624
   -0.6082
   -0.3435
    0.4473
    0.7662
    0.3219
   -0.3511
   -0.5165
   -0.3700
   -0.1740
   -0.0280
    0.0015
    0.0004
    0.0070
    0.0270
    0.0176
   -0.0275
   -0.0667
   -0.0599
   -0.0161
   -0.0070
   -0.0243
   -0.0385
   -0.0400
   -0.0171
   -0.0152
   -0.0184
   -0.0158
    0.0031
    0.0120
    0.0718
    0.0249
   -0.2832
   -0.3327
    0.1170
    0.3865
    0.1416
    0.1473
    0.5946
    0.5869
    0.1359
   -0.0983
    0.0533
    0.1115
   -0.0770
   -0.2705
   -0.3438
    0.1153
    0.6023
    0.4702
   -0.0895
   -0.3755
   -0.2870
   -0.2376
   -0.1302
    0.0391
    0.0650
    0.0152
   -0.0031
   -0.0159
   -0.0383
   -0.0383
   -0.0608
   -0.0701
   -0.0617
   -0.0467
   -0.0534
   -0.0669
   -0.0790
   -0.0777
   -0.0665
   -0.0682
   -0.0684
   -0.0625
   -0.0363
    0.0090
   -0.1027
   -0.2699
   -0.2172
    0.1926
    0.6118
    0.3581
   -0.2976
   -0.4204
    0.1852
    0.4528
   -0.0498
   -0.5086
   -0.2950
    0.1234
    0.1681
   -0.0991
   -0.3526
   -0.4669
   -0.3983
   -0.2362
   -0.0566
   -0.0535
   -0.1053
   -0.0679
   -0.0120
    0.0088
   -0.0326
   -0.0546
   -0.0510
   -0.0676
   -0.0758
   -0.0652
   -0.0591
   -0.0648
   -0.0702
   -0.0627
   -0.0546
   -0.0509
   -0.0500
   -0.0454
   -0.0517
   -0.0413
   -0.0374
   -0.1928
   -0.2496
    0.0860
    0.6607
    0.7083
    0.1175
   -0.3997
   -0.3665
    0.2146
    0.3506
   -0.0965
   -0.4977
   -0.0695
    0.5656
    0.4157
   -0.1568
   -0.5057
   -0.3928
   -0.1955
   -0.0402
    0.0555
    0.0654
    0.0422
    0.0142
   -0.0304
   -0.0654
   -0.0697
   -0.0466
   -0.0387
   -0.0413
   -0.0353
   -0.0248
   -0.0162
   -0.0083
   -0.0052
   -0.0032
   -0.0111
   -0.0053
   -0.0101
   -0.0129
   -0.0083
   -0.0195
   -0.0143
    0.0002
    0.0049
    0.0209
    0.0350
   -0.0087
   -0.0612
   -0.1155
   -0.1713
   -0.0625
    0.3439
    0.6364
    0.5419
   -0.0303
   -0.4502
   -0.0812
    0.4076
    0.2937
   -0.1689
    0.1954
    0.5943
    0.1609
   -0.4062
   -0.4185
   -0.0743
    0.0723
    0.1306
    0.1424
    0.0964
    0.1121
    0.1550
    0.1657
    0.1503
    0.1313
    0.1284
    0.1222
    0.1116
    0.1001
    0.1074
    0.1147
    0.1122
    0.1009
    0.1057
    0.1074
    0.0995
    0.1186
    0.1054
    0.1497
    0.1514
    0.0603
   -0.0071
   -0.0712
   -0.0092
    0.1451
    0.4578
    0.3329
   -0.3573
   -0.5489
    0.0572
    0.3061
   -0.1864
   -0.6404
   -0.1525
    0.3096
    0.0525
   -0.1206
   -0.1271
   -0.0395
   -0.2605
   -0.2073
    0.0368
    0.0512
    0.0752
    0.0583
    0.0494
    0.0265
    0.0487
    0.0713
    0.0466
    0.0170
    0.0046
    0.0371
    0.0445
    0.0322
    0.0195
    0.0220
    0.0291
    0.0301
    0.0342
    0.0427
    0.0398
    0.0361
    0.0339
    0.0335
    0.0379
    0.0472
    0.0478
    0.0552
    0.0495
   -0.0607
   -0.2863
   -0.2536
    0.2754
    0.4087
   -0.0351
   -0.2585
    0.0691
    0.2019
   -0.0669
   -0.0258
    0.2786
    0.2681
   -0.0039
   -0.2098
   -0.2702
   -0.3432
   -0.3277
   -0.1365
   -0.0026
   -0.0321
   -0.0780
   -0.0238
   -0.0358
   -0.0829
   -0.1096
   -0.0919
   -0.0603
   -0.0621
   -0.0597
   -0.0698
   -0.0707
   -0.0700

plot(mn)
i need segmentation of the signal into seven parts.
plot(mn) clearly shows seven parts are separated by a baseline.
Start and end points need to be handled more carefully. I need a general program which may work for similar signals.
Thanks in advance.
regards.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us