How to check for empty matrix, scalar and vector without builtin functions
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
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.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!