Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Using solve

Subject: Using solve

From: El

Date: 24 Sep, 2013 12:05:07

Message: 1 of 2

Hello,

I am having a problem using solve to find x that fulfil f(x)=0. My function is:
 f=trace(A1*P)-SNR_linear(m);
temp=solve(f==0,x);
where A1 is given matrix which elements are known, P is diagonal matrix with diagonal elements containing x and I have to find x for m=1:length(SNR_linear). I am doing this for ten different matrix A1.
But if I use the obtained values of x to check the value of trace(A1*P) sometimes it is bigger than SNR_linear(m). Is it possible for these to be pathological cases?

I'll be glad if someone could help me to work out this problem.

Thank you,
El
                

Subject: Using solve

From: Christopher Creutzig

Date: 4 Oct, 2013 12:20:43

Message: 2 of 2

On 24.09.13 14:05, El wrote:
> Hello,
>
> I am having a problem using solve to find x that fulfil f(x)=0. My function is:
> f=trace(A1*P)-SNR_linear(m);
> temp=solve(f==0,x);
> where A1 is given matrix which elements are known, P is diagonal matrix with diagonal elements containing x and I have to find x for m=1:length(SNR_linear). I am doing this for ten different matrix A1.
> But if I use the obtained values of x to check the value of trace(A1*P) sometimes it is bigger than SNR_linear(m). Is it possible for these to be pathological cases?

Could you show a specific example, as short as possible?


Christopher Creutzig

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us