フィルターのクリア

turning a vector or matrix into an integer

18 ビュー (過去 30 日間)
AA
AA 2015 年 3 月 4 日
コメント済み: rantunes 2015 年 3 月 4 日
Hi, I get the vector x=[2;3] or sometimes x=[2;3;7]. I want that to be turned into an integer number, ie. the very last number in that vector which would be 3 or 7, respectively.

採用された回答

rantunes
rantunes 2015 年 3 月 4 日
編集済み: Guillaume 2015 年 3 月 4 日
Hey,
As far as I understood, you want to something like this:
integer = x(end);
Greets
  2 件のコメント
Guillaume
Guillaume 2015 年 3 月 4 日
編集済み: Guillaume 2015 年 3 月 4 日
Hello Rodrigo, thanks for helping, but can you format the code in your answer (either use the {} Code button or put two space in front of any line of code). It makes it much easier to read answers.
I've done it for you this time.
rantunes
rantunes 2015 年 3 月 4 日
Okay, thank you for the tip!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by