Error because the size of the left side is 4-by-4 and the size of the right side is 1-by-4.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Tilman Zottl
el 16 de Jul. de 2021
Comentada: Tilman Zottl
el 16 de Jul. de 2021
I am experiencing this error.
t is defined as t=1 and the priginal data fed to the program is 116x4
Unable to perform assignment because the size of the left side is 4-by-4 and the size of the right side is
1-by-4.
Error in dcc (line 139)
data(:,:,t) = data2d(t,:).*data2d(t,:);
0 comentarios
Respuesta aceptada
KSSV
el 16 de Jul. de 2021
data(1,:,t) = data2d(t,:).*data2d(t,:);
This is saving the data into initialized matrix problem. You need to check the dimensions of initialized matrix and the matrix which you are going to save into it.
In your line RHS is expecting matrix and you are saving a 1*4 matrix.
Más respuestas (0)
Ver también
Categorías
Más información sobre Descriptive Statistics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!