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

1 view (last 30 days)
Hi everyone,
When I try to plot the following:
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

Answers (1)

Steven Lord
Steven Lord on 10 Nov 2021
% >> 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

Community Treasure Hunt

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

Start Hunting!

Translated by