FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2005, 08:59 PM
Pete Symons
Guest
 
Posts: n/a
Default Matlab contourf function query

Hi,

I'm plotting a matrix with the contourf function. As this matrix represents
a signal spectrum there are many distinct peaks. When viewed as a 2D filled
contour plot some of the contour lines are so close together near the
spectral peaks as to appear like black bands across the plot. Is there any
way I can turn the black contour lines off and leave just the coloured
contour regions?

Thanks in advance,

Pete


Reply With Quote
  #2 (permalink)  
Old 02-25-2005, 06:49 AM
Rune Allnor
Guest
 
Posts: n/a
Default Re: Matlab contourf function query


Pete Symons wrote:
> Hi,
>
> I'm plotting a matrix with the contourf function. As this matrix

represents
> a signal spectrum there are many distinct peaks. When viewed as a 2D

filled
> contour plot some of the contour lines are so close together near the


> spectral peaks as to appear like black bands across the plot. Is

there any
> way I can turn the black contour lines off and leave just the

coloured
> contour regions?
>
> Thanks in advance,
>
> Pete


Try the command

shading flat

Rune

Reply With Quote
  #3 (permalink)  
Old 02-26-2005, 01:09 AM
W. Dale Hall
Guest
 
Posts: n/a
Default Re: Matlab contourf function query



Pete Symons wrote:
> Hi,
>
> I'm plotting a matrix with the contourf function. As this matrix represents
> a signal spectrum there are many distinct peaks. When viewed as a 2D filled
> contour plot some of the contour lines are so close together near the
> spectral peaks as to appear like black bands across the plot. Is there any
> way I can turn the black contour lines off and leave just the coloured
> contour regions?
>
> Thanks in advance,
>
> Pete
>
>


Just in case you didn't catch this when you posted the identical
query to comp.soft-sys.matlab (which would have been the correct
place to put it):

I'm not sure this is the quickest way, but contourf will return handles
to the contours:

[mumble, H, grumble] = contourf(thingo);

for q=1:length(H)
set(H(q),'LineStyle','none')
end


Dale.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query about tan inverse function [email protected] VHDL 1 07-17-2005 03:27 PM
matlab's raylrnd function KK DSP 5 11-01-2004 10:10 PM
Matlab function for color palatte Nithin DSP 0 11-05-2003 11:56 PM
transfer function confusion and MATLAB Parlous DSP 0 08-14-2003 06:02 PM
transfer function confusion and MATLAB Parlous DSP 0 08-13-2003 05:09 PM


All times are GMT +1. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved