Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Matlab plot with matrix inverse coefficients
Replies: 1   Last Post: Feb 18, 2013 6:27 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Torsten Hennig

Posts: 2,419
Registered: 12/6/04
Re: Matlab plot with matrix inverse coefficients
Posted: Feb 18, 2013 6:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> Hi,
> I will try to show you what i want to do
>
> V= 0:1:10
>
> A=[10*V 20*V ; 30*V 40*V]
> a=inv(A)
>
> I would get matrix: a= [a11 a12;a21 a22]
>
> plot(V;a11)
> I want to plotting coefficients of the matrix
> inverse, when the original matrix coefficients vary
> with V,against V
>
>
> three example matrixes:
> V1=1
> A=[10*1 20*1 ; 30*1 40*1]
> a=inv(A)=[ -0.2000 0.1000; 0.1500 -0.0500]
>
>
>
> V2=2
> A=[10*2 20*2 ; 30*2 40*2]
> a=inv(A)= [ -0.1000 0.0500 ; 0.0750 -0.0250]
>
>
> V3=3
> A=[10*3 20*3 ; 30*3 40*3]
> a=inv(A)= [ -0.0667 0.0333; 0.0500 -0.0167]
>
> and so on with other Vs
>
> so on the graph (V;a11) : first point (1; -0.20)
> second point (2; -0.1) third point (3;-0.0667) and so
> on
>
> I am a student, i need to calculate elastic
> properties of laminates, i have these huge matrices
> and i have different angles to put in, from 0 to 90,
> itns not done with a pen.
> If I can figure it out how to do this i can write a
> proper report :)


V=zeros(10,1);
koeff=zeros(10,1);
A=zeros(2,2);
a=zeros(2,2);

For i=1:10,
A=[10*i 20*i ; 30*i 40*i];
a=inv(A);
V(i)=i;
koeff(i)=a(1,1);
end
plot(V,koeff);

Best wishes
Torsten.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.