how to change the plot origin

12 ビュー (過去 30 日間)
kimo lassay
kimo lassay 2015 年 5 月 15 日
コメント済み: kimo lassay 2015 年 5 月 15 日
Hello, I have a problem to plot poincare sections when I want to change the fixed point I don't know how to plot it, moreover I work with RK4 method and henon procedure ( and I don't work with function [..]=..(..), ode.. etc). so what I want is how to plot my 'circle' around other origin that I chose which is perforce not (0.0)
  2 件のコメント
Jan
Jan 2015 年 5 月 15 日
The question is not clear. What does " I don't work with function [..]=..(..), ode.. " mean?
kimo lassay
kimo lassay 2015 年 5 月 15 日
there is no function to call or to resolve i write all, my program puts the initial data to generate other values

サインインしてコメントする。

回答 (2 件)

Jan
Jan 2015 年 5 月 15 日
The "origin" is (0,0) by definition. Do you want to get different center of your circle? So what about adding the wanted coordinates to the calculated coordinates? If you post the relevant part of the code, a matching suggestion is possible.
  1 件のコメント
kimo lassay
kimo lassay 2015 年 5 月 15 日
編集済み: kimo lassay 2015 年 5 月 15 日
Thank you for replying i will tell you how my code has programed, i give the initial data and i do the rk4 method when it gives me the result i penetrate in procedure of henon and i plot the result in phase plan just of henon so i don't calculate coordinates in direct way now what i want when i give different initial data well chosen and calculated by me (theoretically must the origin of plotting be different from 0,0) but i don't know how to do it as code in matlab

サインインしてコメントする。


kimo lassay
kimo lassay 2015 年 5 月 15 日
編集済み: kimo lassay 2015 年 5 月 15 日
like this what i want to do, not the same graph but the same idea whenever i change the initial data the plot will get a distance with a value that i give
  1 件のコメント
kimo lassay
kimo lassay 2015 年 5 月 15 日
to clarify my question what i should add in my program to let the circles get another origin which is not 0,0
hold on
if r==0 && w>0
B=B+w;
plot(B,A,'k:')
elseif r==0 && w<0
B=B+w;
plot(B,A,'g:')
else
plot(B,A,'m:')
end
hold off
but here the circles haven't the same centre plzz help.. and thanks

サインインしてコメントする。

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by