Filter löschen
Filter löschen

Info

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

Error using horzcat Dimensions of matrices being concatenated are not consistent.

1 Ansicht (letzte 30 Tage)
Anshuman S
Anshuman S am 9 Jun. 2017
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in q1_fpi_150115 (line 71)
disp([' iteration = ' num2str(count) ' xf=' num2str(xf) ' yi=' num2str(yf) ' ex=' num2str(ex) ' ey=' num2str(ey) ])
The code is :
xf= (-(a1*xi.^2 + b1*yi.^2 + 2*f1*y +c1 )/(2*h1+ 2*g1)) ;
yf= (-(a2*xf.^2 + b2*yi.^2 + 2*g2*xf +c2 )/(2*h2+ 2*g2)) ;
disp([' iteration = ' num2str(count) ' xf=' num2str(xf) ' yi=' num2str(yf) ' ex=' num2str(ex) ' ey=' num2str(ey) ])

Antworten (1)

Walter Roberson
Walter Roberson am 9 Jun. 2017
One of the variables count or xf or yf or ex or ey has multiple rows. You did not post enough information for us to determine which one.
  1 Kommentar
Anshuman S
Anshuman S am 9 Jun. 2017
sir, what all is required may I send you the full code. I am using Matlab for the first time

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by