I’m trying to plot a mat file with a 1×1 structure, but it’s giving the error that “Index in position 2 exceeds array bounds. Index must not exceed 1.”
data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double]data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double] data1 = load(‘radial.mat’); % Assume data is [X1 Y1] for file1
plot(data1(:,1), data1(:,2), ‘g’, ‘DisplayName’, ‘File 2’);
rhis is what is in the file
data: [-0.0128 -0.0130 -0.0129 -0.0127 -0.0122 -0.0116 … ]
the data is a 1×22620 double
datastart: 1
dataend: 22620
titles: ‘Channel 1’
rangemin: -2
rangemax: 2
unittext: ‘V’
unittextmap: 1
blocktimes: 7.3965e+05
tickrate: 1000
samplerate: 1000
firstsampleoffset: 0
comtext: ”
com: [0×5 double] matlab function MATLAB Answers — New Questions