Error using * Inner matrix dimensions must agree
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ding xian zhi
am 19 Mär. 2017
Bearbeitet: per isakson
am 19 Mär. 2017
y=cos(x).*[0.5+(3*sin(x))./(1+x*x)]
Error using *
Inner matrix dimensions must agree.
I want to know where is the problem could anyone help me thx
0 Kommentare
Akzeptierte Antwort
GEEVARGHESE TITUS
am 19 Mär. 2017
In the last part of the relation you are trying to do x*x, which is not possible. You should either use a dot operator or you need to transpose one of the x.
x=1:10;
y1=cos(x).*[0.5+(3*sin(x))./(1+x.*x)]
y2=cos(x).*[0.5+(3*sin(x))./(1+x*x')]
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!