file .out and function

조회 수: 6 (최근 30일)
ELISABETTA BILLOTTA
ELISABETTA BILLOTTA 2023년 6월 1일
편집: MarKf 2023년 6월 1일
Good morning everyone.
I have this function that I have attached where selecting and giving the run only from line 45 to 56 I can display an image. however, the image is cut laterally as in the figure.
in fact, it seems that the domain is cut when nx is different from ny. To view these figures, .out files are inserted, but I can't attach them (I don't know why).
In some cases the images have no problems, in other cases either the plots are cut or I just can't see the image.
Could anyone help me to solve this problem?
  댓글 수: 1
MarKf
MarKf 2023년 6월 1일
편집: MarKf 2023년 6월 1일
It would be easier to reply if we could recreate the issue.
From the figure it seems that just changing the x-limits of the plot (with for example xlim(-7e-4, 3e-4) after the plot) would work, but you say "that the domain is cut" in itself...
The only important lines (misleadingly included after a if false) would be:
contourf(x,y,z,[0.1:0.2:0.9 1 5 10 25 50],'ShowText','on');
hold on
plot(xbar,ybar,'or')
So if you cannot include the file1 that is read (we wouldn't care about the .out output file for a fix) you could add a matfile inlcuding an example of the variables x,y,z,xbar,ybar (maybe xbar,ybar are not important either)
Otherwise the issue seems to be in the input file itself and what becomes of xmin

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by