Unexpected resul when trying to plot from array "empty double row vector"

조회 수: 2 (최근 30일)
Em
Em 2021년 11월 10일
답변: Steven Lord 2021년 11월 10일
Hi everyone,
When I try to plot the following:
x305a=table2array(x305);
x305a(404:end,1)
I recieve this
>> x305a(1,404:end)
ans = 1×0 empty double row vector
Does anyone have any ideas what could be going on? The array is filled correctly

답변 (1개)

Steven Lord
Steven Lord 2021년 11월 10일
% >> x305a(1,404:end)
Most likely x305a has fewer than 404 columns. As a smaller example:
x = 1:10;
x(1, 11:end) % 11:end is 11:10 which is empty
ans = 1×0 empty double row vector

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by