How can remove these outlier from the files sigle vector ?

1 view (last 30 days)
Orginal file
m=[196 221 136 255 244 230 232 255 267 212 225 239 193 359 359 338 354 338 354 359 202 230 214 230 230 214 235 251 217 262 217 258 265 224 258 288 363 224 242 239 258 244 212 304 290 336 407 347 409 336 407 347 409 306 308 293 262 285 262 285 267 281 281 300 292 209 209 237 237 314 356 332 380 380 388 437 193 200 202 181 181 193 200 209 209 209 221 230 228 237 232 193 200 209 221 230 228 237 202 209 213 232 246 281 292 232 292 281 292 246 292 292 356 191 214 212 292 292 338 317 338 317 338 317 338 317 209 260 230 253 255 320 370 274 324 209 200 278 253 278 283 290 196 212 264 250 264 264 189 228 225 246 189 228 225 218 221 235 207 251 232 260 258 262 232 248 248 260 294 253 260 255 262 382 340 382 340 382 340 338 322 377 354 283 294 262 271 290 258 269 242 294 292 382 340 276 258 179 179 202 189 192 177 163 209 276 259 230 290 272 347 366 334 380 344 380 344 380 362 380 344 380 362 414 432 411 419 435 413 221 244 229 200 228 184 244 235 271 269 292 270 324 290 285 299 277 329 184 173 191 182 191 184 184 172 191 182 191 184 159 159 317 294 317 294 317 294 317 294 283 290 193 186 207 237 232 246 242 230 225 230 242 230 294 251 308 251 237 237 222 317 276 269 225 230 242 230 258 301 294 320 317 258 237 294 251 308 251 237 258 251 235 222 317 186 198 202 198 195 212 202 168 168 331 278 250 271 264 255 285 276 259 179 179 182 166 179 182 156 179 200 193 138 373 350 396 360 386 368 488 421 382 225 248 264 281 209 221 216 214 230 368 346 235 299 274 254 288 267 292 294 366 317 308 402 283 264 283 264 336 315 336 315 308 288 308 288 343 320 340 318 414 175 175 152 161 184 264 278 294 205 177 165 179 165 184 170 166 162 196 186 207 205 186 216 126 235 244 264 292 304 244 209 271 237 229 258 251 218 228 232 239 283 297 347 366 334 380 344 380 344 380 362 380 344 380 362 414 432 411 419 435 413 271 269 292 270 324 290 285 299 277 329 209 276 259 230 290 272 317 294 317 294 338 322 377 354 317 294 317 294 182 186 200 209 221 251 110 161 166 175 246 209 216 145 159 172 177 244 265 276 308 177 177 198 196 304 255 258 267 237 264 255 221 196 143 145 214 232 230 242 244 177 184 202 196 235 248 172 189 265 269 283 255 267 253 283 267 294 175 271 244 253 196 294 334 345 237 244 294 242 281 306 290 306 285 306 280 285 306 280 306 306 301 290 315 310 315 310 218 242 230 248 232 253 251 267 228 225 209 225 216 235 216 255 340 267 278 250 363 228 225 209 225 216 235 216 255 294 294 308 308 251]
Numbers of this file 603
outiler file
k=[4 35 41 44 57 59 64 102 104 106 108 109 110 111 116 117 141 151 165 166 187 192 208 230 235 239 242 243 270 276 329]
this is index of orginal file
Now, we want to remove outiler file from orginal files, noted that the outiler file is index of the orginal file

Answers (1)

Walter Roberson
Walter Roberson on 24 Apr 2023
clean_m = m;
clean_m(k) = [];
In the special case that you do not need the original m afterwards you can simplify down to
m(k) = [];

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!