Prev: Stepwisefit number of terms included (easy question)
Next: Help with abs block in simulink, absolute operation complex fixed point inputs
From: William Han on 1 Jun 2010 01:15 Here is my matlab source code: real = [ .00000 .00297 .01098 .02174 .03242 .04047 .04407 .04220 .03448 .02099 .00208 -.02177 -.05000 -.08204 -.11731 -.15528 -.19538 -.23712 -.28000 -.32354 -.36727 -.41077 -.45361 -.49538 -.53571 -.57424 -.61061 -.64452 -.67568 -.70381 -.72869 -.75010 -.76786 -.78184 -.79190 -.79797 -.80000 ] imag = [ .00000 .08657 .16917 .24485 .31211 .37077 .42149 .46524 .50296 .53544 .56325 .58677 .60622 .62170 .63326 .64089 .64458 .64428 .64000 .63172 .61947 .60328 .58323 .55943 .53199 .50107 .46686 .42956 .38940 .34665 .30158 .25449 .20568 .15549 .10425 .05230 .00000 ] c = complex(real, imag) % plot(real, imag, 'b') plot(c, 'b') axis([-.8 0.1 0 .8]) title('\alpha = 10') xlabel('Re(h\lambda)') ylabel('Im(h\lambda)') set(gca, 'YAxisLocation', 'right') set(gca, 'Box', 'off') What I wanted was to shift Y AXIS left 0.1 unit, so (real, imag) = (0.0, 0.0) can crossing. thanks,
From: us on 1 Jun 2010 03:48 "William Han" <william.han(a)emallguide.com> wrote in message <hu250q$nk3$1(a)fred.mathworks.com>... > Here is my matlab source code: > real = [ > .00000 > .00297 > .01098 > .02174 > .03242 > .04047 > .04407 > .04220 > .03448 > .02099 > .00208 > -.02177 > -.05000 > -.08204 > -.11731 > -.15528 > -.19538 > -.23712 > -.28000 > -.32354 > -.36727 > -.41077 > -.45361 > -.49538 > -.53571 > -.57424 > -.61061 > -.64452 > -.67568 > -.70381 > -.72869 > -.75010 > -.76786 > -.78184 > -.79190 > -.79797 > -.80000 > ] > > imag = [ > .00000 > .08657 > .16917 > .24485 > .31211 > .37077 > .42149 > .46524 > .50296 > .53544 > .56325 > .58677 > .60622 > .62170 > .63326 > .64089 > .64458 > .64428 > .64000 > .63172 > .61947 > .60328 > .58323 > .55943 > .53199 > .50107 > .46686 > .42956 > .38940 > .34665 > .30158 > .25449 > .20568 > .15549 > .10425 > .05230 > .00000 > ] > > c = complex(real, imag) > % plot(real, imag, 'b') > plot(c, 'b') > axis([-.8 0.1 0 .8]) > title('\alpha = 10') > xlabel('Re(h\lambda)') > ylabel('Im(h\lambda)') > set(gca, 'YAxisLocation', 'right') > set(gca, 'Box', 'off') > > What I wanted was to shift Y AXIS left 0.1 unit, so (real, imag) = (0.0, 0.0) can crossing. > > thanks, currently not possible... there are a few FEX submissions, which (try to) deal with this... us
From: Greg Heath on 1 Jun 2010 11:29 On Jun 1, 1:15 am, "William Han" <william....(a)emallguide.com> wrote: > Here is my matlab source code: > real = [ > .00000 > .00297 -----SNIP > -.79797 > -.80000 > ] > > imag = [ > .00000 > .08657 -----SNIP > .05230 > .00000 > ] Why are you using function names as variables? help real help imag Hope this helps. Greg
From: William Han on 1 Jun 2010 14:25 Greg Heath <heath(a)alumni.brown.edu> wrote in message <8f9d058a-6891-4c02-8226-c70960878a62(a)d12g2000vbr.googlegroups.com>... > On Jun 1, 1:15 am, "William Han" <william....(a)emallguide.com> wrote: > > Here is my matlab source code: > > real = [ > > .00000 > > .00297 > -----SNIP > > -.79797 > > -.80000 > > ] > > > > imag = [ > > .00000 > > .08657 > -----SNIP > > .05230 > > .00000 > > ] > > Why are you using function names as variables? > > help real > help imag > > Hope this helps. > > Greg Greg, I changed to rea and ima. The code like: c = complex(rea, ima) d = rea + ima * i % plot(rea, ima, 'b') % plot(d, 'b') plot(c, 'b') axis([-.8 0.1 0 .8]) title('\alpha = 10') xlabel('Re(h\lambda)') ylabel('Im(h\lambda)') set(gca, 'YAxisLocation', 'right') set(gca, 'Box', 'off') Still does not work. thanks, William
From: William Han on 1 Jun 2010 14:27
"us " <us(a)neurol.unizh.ch> wrote in message <hu2dvj$c9i$1(a)fred.mathworks.com>... > "William Han" <william.han(a)emallguide.com> wrote in message <hu250q$nk3$1(a)fred.mathworks.com>... > > Here is my matlab source code: > > real = [ > > .00000 > > .00297 > > .01098 > > .02174 > > .03242 > > .04047 > > .04407 > > .04220 > > .03448 > > .02099 > > .00208 > > -.02177 > > -.05000 > > -.08204 > > -.11731 > > -.15528 > > -.19538 > > -.23712 > > -.28000 > > -.32354 > > -.36727 > > -.41077 > > -.45361 > > -.49538 > > -.53571 > > -.57424 > > -.61061 > > -.64452 > > -.67568 > > -.70381 > > -.72869 > > -.75010 > > -.76786 > > -.78184 > > -.79190 > > -.79797 > > -.80000 > > ] > > > > imag = [ > > .00000 > > .08657 > > .16917 > > .24485 > > .31211 > > .37077 > > .42149 > > .46524 > > .50296 > > .53544 > > .56325 > > .58677 > > .60622 > > .62170 > > .63326 > > .64089 > > .64458 > > .64428 > > .64000 > > .63172 > > .61947 > > .60328 > > .58323 > > .55943 > > .53199 > > .50107 > > .46686 > > .42956 > > .38940 > > .34665 > > .30158 > > .25449 > > .20568 > > .15549 > > .10425 > > .05230 > > .00000 > > ] > > > > c = complex(real, imag) > > % plot(real, imag, 'b') > > plot(c, 'b') > > axis([-.8 0.1 0 .8]) > > title('\alpha = 10') > > xlabel('Re(h\lambda)') > > ylabel('Im(h\lambda)') > > set(gca, 'YAxisLocation', 'right') > > set(gca, 'Box', 'off') > > > > What I wanted was to shift Y AXIS left 0.1 unit, so (real, imag) = (0.0, 0.0) can crossing. > > > > thanks, > > currently not possible... > there are a few FEX submissions, which (try to) deal with this... > > us US, what do you mean by "FEX submissions"? since I am new to this forum. Could you point me the URL link(s)? thanks, William |