Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

MATLAB desktop keyboard shortcuts, such as Ctrl+S, are now customizable.

In addition, many keyboard shortcuts have changed for improved consistency


across the desktop.
To customize keyboard shortcuts, use Preferences. From there, you can also
restore previous default settings by selecting "R2009a Windows Default Set"
from the "Active settings" drop-down list. For more information, see Help.
Click here if you do not want to see this message again.
>> a1=[0,0,0,1,0;1,0,0,0]
??? Error using ==> vertcat
CAT arguments dimensions are not consistent.
>> a1=[0,0,0,1,0;1,0,0,0,0]
a1 =
0
1

0
0

0
0

1
0

0
0

>> a2=[1,0,0,0,0;0,0,0,0,1];a3=[0,0,0,0,1;0,1,0,0,0];a4=[0,1,0,0,0;0,0,1,0,0]
a4 =
0
0

1
0

0
1

0
0

0
0

>> k1=[1100,-1100;-1100,1100];k2=[2000,-2000;-2000,2000];k3=[1100,-1100;-1100,11
00];k4=[2000,-2000;-2000,2000]
k4 =
2000
-2000

-2000
2000

>> K=a1'*k1*a1+a2'*k2*a2+a3'*k3*a3+a4'*k4*a4
K =
3100
0
0
-1100
-2000

0
3100
-2000
0
-1100

0
-2000
2000
0
0

-1100
0
0
1100
0

-2000
-1100
0
0
3100

>> Kaa=K([1:2];[1:2]);Kab=K([1:2];[3:5]);Kba=Kab';Kbb=K([3:5];[3:5]);
??? Kaa=K([1:2];[1:2]);Kab=K([1:2];[3:5]);Kba=Kab';Kbb=K([3:5];[3:5]);
|
Error: Unbalanced or unexpected parenthesis or bracket.
>> Kaa=K([1:2],[1:2]);
>> Kab=K([1:2],[3:5]);Kba=Kab';Kbb=K([3:5],[3:5]);
>> Pa=[60,50,20];pb=[0,0.01];
>> Pai=Kab*pb;
??? Error using ==> mtimes
Inner matrix dimensions must agree.
>> Pai=Kab*pb

??? Error using ==> mtimes


Inner matrix dimensions must agree.
>> Pa=[60;50;20];pb=[0;0.01];
>> Pai=Kab*pb
??? Error using ==> mtimes
Inner matrix dimensions must agree.
>> Kaa=K([1:3];[1:3]);Kab=K([1:3];[4:5]);Kba=Kab';Kbb=K([4:5];[4:5]);
??? Kaa=K([1:3];[1:3]);Kab=K([1:3];[4:5]);Kba=Kab';Kbb=K([4:5];[4:5]);
|
Error: Unbalanced or unexpected parenthesis or bracket.
>> Kaa=K([1:3],[1:3]);Kab=K([1:3],[4:5]);Kba=Kab';Kbb=K([4:5],[4:5]);
>> Pai=Kab*pb
Pai =
-20
-11
0
>> Pt=Pa-Pai
Pt =
80
61
20
>> pa=inv(Kaa)*Pt
pa =
0.0258
0.0736
0.0836
>> Pb=Kba*pa+Kbb*pb
Pb =
-28.3871
-101.6129
>> q1=[0;0.0258];q2=[0.0258;0.01];q3=[0.01;0.0736];q4=[0.0736;0.0836];
>> Q1=k1*q1
Q1 =
-28.3800
28.3800
>> Q2=k2*q2
Q2 =
31.6000
-31.6000

>> Q3=k3*q3
Q3 =
-69.9600
69.9600
>> Q4=k4*q4
Q4 =
-20
20
>>

You might also like