フィルターのクリア

How to check for empty matrix, scalar and vector without builtin functions

1 回表示 (過去 30 日間)
Millone
Millone 2015 年 4 月 26 日
コメント済み: Star Strider 2015 年 4 月 26 日
I am lost on this. How do I check for empty matrix, scalar or vector without using these builtin functions: isempty, isscalar, and is vector?
Some help will be appreciated.
Thanks

採用された回答

Star Strider
Star Strider 2015 年 4 月 26 日
Using the size function is an option:
x = []
sx = size(x)
produces:
x =
[]
sx =
0.0000e+000 0.0000e+000
Since this seems to be a homework assignment, I leave the rest to you.
  2 件のコメント
Millone
Millone 2015 年 4 月 26 日
Thats fair. Thanks a lot for you help.
Star Strider
Star Strider 2015 年 4 月 26 日
My pleasure.

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by