フィルターのクリア

how to solve ?Error using/Matrix dimensions must agree.'?

1 回表示 (過去 30 日間)
Alvaro Mª Zumalacarregui Delgado
Alvaro Mª Zumalacarregui Delgado 2021 年 2 月 19 日
コメント済み: Jon 2021 年 2 月 19 日
I am working with Matlab app designer, while i was trying to run the interface the program send this message, what is the proble in my code?
  2 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 2 月 19 日
Share the code/Not screenshot.
Alvaro Mª Zumalacarregui Delgado
Alvaro Mª Zumalacarregui Delgado 2021 年 2 月 19 日
function Calcularsolucin2ButtonValueChanged(app, event)
P = 50;
Q = 60;
C1 = 4;
C2 = 7;
K = 10;
a = app.a.Value;
b = app.b.Value;
x = linspace(0,1000);
y2 = K/(exp((K*x-K*C2))-b);
plot (app.Axes,y2,x,'r');
hold on;
y = linspace(0,1000);
x2 = K/(exp(K*y-K*C1)-a);
plot (app.Axes,x2,y,'b');
end

サインインしてコメントする。

採用された回答

Jon
Jon 2021 年 2 月 19 日
Try replacing the line assigning x2 with the following using ./ to get element by element division
y2 = K./(exp((K*x-K*C2))-b);
  2 件のコメント
Alvaro Mª Zumalacarregui Delgado
Alvaro Mª Zumalacarregui Delgado 2021 年 2 月 19 日
Thanks! with that I solved the problem
Jon
Jon 2021 年 2 月 19 日
Glad to hear!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by