linspace and colon with column vector output
조회 수: 3 (최근 30일)
이전 댓글 표시
Is it possible to generate column sample vectors by using either linspace()/logspace() or : - operator ?
The background is that I'm using extended precision calculations, and my inputs are also of an extended precision data type. The inputs are generated with linspace or colon, but transposing of symbolic/extended precision data (e.g. a=a.' or a=a(:)) is by far as not cheap as transposing some double data.
And reshaping of the output of linspace() or colon operator may be quite time consuming for double vectors of a large length.
댓글 수: 0
답변 (1개)
Matt J
2014년 5월 1일
편집: Matt J
2014년 5월 1일
And reshaping of the output of linspace() or colon operator may be quite time consuming for double vectors of a large length.
Shouldn't be. No manipulation of the data is done when you transpose/reshape a vector. A simple change to the size(X) data in the underlying mxArray object is made.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!