필터 지우기
필터 지우기

select first 15 from ans

조회 수: 1 (최근 30일)
Kiruthiga Sekar
Kiruthiga Sekar 2019년 4월 26일
답변: Star Strider 2019년 4월 26일
Hi,
When I execute a particular function, it produces 70 values in ans. But i want only first 15 values stored in a array variable. How do I do it?
TIA

채택된 답변

Star Strider
Star Strider 2019년 4월 26일
It appears that you are calling the function without an output assignment.
Call it as:
v = theFunction(x);
then:
v = v(1:15);
to keep only those elements you want.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by