How change the shape of plot ?

조회 수: 11 (최근 30일)
salim
salim 2024년 12월 17일
댓글: dpb 2024년 12월 20일
i have code for ploting data but the graph is not what i am looking for is like that
but i am looking for something like that which have 2D and countor graph and 3D togheter or 2D alone but detected all 3D structure with motion value
any one have any ideal i will upload the code and file for plotting
data = load('ST1.txt');
core = reshape(data(:, 3),100,100).';
subplot(3,1,1)
surf(real(core),'edgecolor', 'none')
subplot(3,1,2)
surf(imag(core),'edgecolor', 'none')
subplot(3,1,3)
surf(abs(core),'edgecolor', 'none')
  댓글 수: 3
salim
salim 2024년 12월 18일
@dpb I know it work but i want to change shape of graph ? How i can change the disign of graph?
dpb
dpb 2024년 12월 18일
I do not know what "change shape of graph" means. Change what shape from what to what?
You can design the graph to be whatever you wish but we can't read your mind in that regard. Again, change which specific graph design from what to what?

댓글을 달려면 로그인하십시오.

답변 (1개)

dpb
dpb 2024년 12월 18일
편집: dpb 2024년 12월 18일
[X,Y,Z] = peaks(25);
surfc(X,Y,Z)
hold on
hAx(1)=gca;
pos=hAx(1).Position;
wh=diff(reshape(pos,2,[]).'); w=wh(1); h=wh(2);
l=pos(1); b=pos(2);
T=0.95; R=0.75;
hAx(2)=axes('Position',[l+T*w b+T*h (1-R)*w (1-R)*h],'Color','none');
hL=plot(hAx(2),X(ceil(25/2),:),Z(ceil(25/2),:),'k-','linewidth',2);
What is what you've done and what is what you're trying to do is hard to distinguish in the Question, but if the object is to get something approaching the Figure with the inset plot, the basic idea is above by placing a second axes on the same figure.
I'm not sure how the example there apparently has the edit tool icons visible...
  댓글 수: 7
salim
salim 2024년 12월 20일
편집: salim 2024년 12월 20일
@dpb Thank you so much for your effort and for dedicating your valuable time to this problem. If I may, I’d like to provide a bit more explanation about the issue, as I’m new to stochastic processes. This is my first encounter with a problem involving a Wiener process in the context of solving a soliton solution, and I’m not sure how to approach it correctly. I solved the problem using a different method, but I would appreciate any guidance or suggestions.
Below is my solution. As you can see, the Wiener process appears in the PDE soliton solution. I’ve treated all variables as constants except for delta and w(t), where w(t) represents a random Wiener process. The key parameter is delta. When δ=0, there is no noise in the system, but as delta increases, the noise becomes more pronounced. My goal is to demonstrate how changes in delta affect the behavior of the function.
and this is solution of paper
alos countour of graph must be like this which show all part of noise
Additionally, this is another paper that demonstrates the effect of delta and includes a 3D graph showing the same behavior that you referenced. That’s the entire concept I wanted to convey.
In the top picture, ϵ corresponds to δ in our function. As ϵ (or delta) increases, the noise also increases. I want to highlight this effect. If you have any questions, I’ll be here to answer them. Thank you for your valuable work!
i want something very clear like the picture full detailed
dpb
dpb 2024년 12월 20일
Those have been rotated and limits applied so that the axis of the minimum is approximately straight on in view for the two to the left; the RH one for some reason was left rotated somewhat less, but sill some. Yours, however, are all still at the default viewpoint; you can either programmatically locate the minimum of the trough with time, t, in order to know that angle. Or, probably simpler would be to just use the edit tool to rotate the image until you can find the orientation from which to view it that looks as you want and then use that set of camera positions programmatically as starting point.
However, the annotation on the lower traces certainly is confusing; it says they're for a given epsilon and x=0.1 -- but if x were to be held constant in the upper 3D view, the resulting trace with time would be a constant. Those traces are, by the labelling of the axes in the 3D plots, at a specific time versus x, not at a fixed x against time.
Good luck...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by