필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to access data?

조회 수: 2 (최근 30일)
Tshering Lhamo
Tshering Lhamo 2016년 4월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
With a data as follows:
8
4
1
7
65
66
399
318
489
63
64
8
4
1
63
489
318
400
319
499
61
62
If I wanted to get the numbers excluding 8, 4 and 1.. how should I go about? When I try to access, it says "function invalid for input argument type 'double'. Thanks.

답변 (1개)

Walter Roberson
Walter Roberson 2016년 4월 4일
x = [8
4
1
7
65
66
399
318
489
63
64
8
4
1
63
489
318
400
319
499
61
62];
x_without = x(~ismember(x, [8, 4, 1]);
  댓글 수: 1
Tshering Lhamo
Tshering Lhamo 2016년 4월 4일
Thank you so much. Works perfectly!

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by