Thread Subject: Check this error!

Subject: Check this error!

From: jwchoi@ucsc.edu (woong)

Date: 18 Feb, 2005 16:33:30

Message: 1 of 3

>> numG=0.01*[1 0.01 1];
>> denG=[0.25 0.01 1 0 0];
>> sysG=tf(numG,denG);
>> [mag,phase,w]=bode(sysG);
>> loglog(w,mag,0);
??? Error using ==> loglog
Data may not have more than 2 dimensions.

What is wrong in this articles? Please let me know the solution for this problem.

Subject: Check this error!

From: No one

Date: 19 Feb, 2005 00:56:04

Message: 2 of 3

woong wrote:
>>>numG=0.01*[1 0.01 1];
>>>denG=[0.25 0.01 1 0 0];
>>>sysG=tf(numG,denG);
>>>[mag,phase,w]=bode(sysG);
>>>loglog(w,mag,0);
>
> ??? Error using ==> loglog
> Data may not have more than 2 dimensions.
>
> What is wrong in this articles? Please let me know the solution for this problem.

what do you find if you enter 'doc loglog'?

Subject: Check this error!

From: ihavenoemail@address.com (MATLAB Bandit)

Date: 21 Feb, 2005 13:29:39

Message: 3 of 3

Check the size of mag and phase:

size(mag)
size(phase)

the bode command will return 3 dimensional array.

To get your loglog command to work try the following:

loglog(w,squeeze(mag),0)

Laterz


On 18 Feb 2005 16:33:30 -0800, woong wrote:
>>> numG=0.01*[1 0.01 1];
>>> denG=[0.25 0.01 1 0 0];
>>> sysG=tf(numG,denG);
>>> [mag,phase,w]=bode(sysG);
>>> loglog(w,mag,0);
>??? Error using ==> loglog
>Data may not have more than 2 dimensions.
>
>What is wrong in this articles? Please let me know the solution for
this problem.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

rssFeed for this Thread

Contact us at files@mathworks.com