Prev: how to use textscan in a for loop with header lines increasing
Next: local maxima lines:MATLAB CODE
From: Walter Roberson on 2 Mar 2010 14:34 Walter Roberson wrote: > DRG wrote: >> Thanks Walter.. that still doesn't seem to be working for me though; >> It now displays something but not what it should. Surely there should >> be a single value at every angular position from 0 - 360 if it's >> working right ? It seems to repeat the values a lot and instead of >> having single points, it goes over itself and has a spider web effect. >> Any ideas? > > You could get that effect if any of the values to be plotted are > negative or complex, or if you reversed the order of the parameters. > > Beyond that... a bit later I'll do a small experiment to verify that my > logic was correct (I'm not by my matlab machine at the moment.) Logic checked... linspace(0,2*pi,361) as the angle works fine for 0 to 360 degrees (inclusive) in 1 degree steps. For example, d = linspace(0,2*pi,361); polar(d,abs(sin(d))); should give you two circles.
First
|
Prev
|
Pages: 1 2 Prev: how to use textscan in a for loop with header lines increasing Next: local maxima lines:MATLAB CODE |