フィルターのクリア

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 Center および File ExchangeGet 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