Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to overcome this error?

1 Ansicht (letzte 30 Tage)
Nisar Ahmed
Nisar Ahmed am 13 Okt. 2020
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in smoothmod (line 55)
RHOar = [RHOar.'; 0];

Antworten (2)

Matt J
Matt J am 13 Okt. 2020
RHOar is not a row vector, as you seem to expect it to be at line 55.
  1 Kommentar
madhan ravi
madhan ravi am 13 Okt. 2020
RHOar = [RHOar.'; zeros(size(RHOar.'))];

Sudhakar Shinde
Sudhakar Shinde am 13 Okt. 2020
%Example:
a=[1 2 3 4]
B= [a;0]
%This throws an eroor as you mentioned
%Correct concatenation
B=[a,0]
%or
B=[a';0]
  1 Kommentar
Sudhakar Shinde
Sudhakar Shinde am 13 Okt. 2020
if this throws error :
RHOar = [RHOar'; 0];
you could try:
RHOar = [RHOar; 0];

Community Treasure Hunt

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

Start Hunting!

Translated by