Vector must be the same length error

1 visualización (últimos 30 días)
Umang Dongre
Umang Dongre el 30 de Oct. de 2018
Respondida: madhan ravi el 30 de Oct. de 2018
here i was trying to plot graph but it showing me this error
load('B0005.mat');
SoC=xlsread('E:\SoC.xlsx');
for i=87:9:100
Type=B0005.cycle(i).type;
if strcmp(Type,'charge')==1
Volt=B0005.cycle(i).data.Volt;
plot(B0005.cycle(i).data.Volt, SoC);
hold on;
end
end

Respuesta aceptada

madhan ravi
madhan ravi el 30 de Oct. de 2018
Sizes of B0005.cycle(i).data.Volt and SoC should be the same if you want to plot them if not make some change such that they are equal

Más respuestas (0)

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by