24小时热门版块排行榜    

查看: 706  |  回复: 0

maybwill

新虫 (初入文坛)

[交流] 利用gprmax仿真不能出.out文件的剖面图

探地雷达仿真模拟生成out文件的剖面图总是报错不知道问题出在哪里
求助
以下是错误:
Reading GprMax2D #analysis: file ...box.out
??? Error using ==> reshape
To RESHAPE the number of elements must not change.

Error in ==> gprmax2d_readprofile at 277
        ez=reshape(F(1:3:end),TotalOuts,Model(1).iterations,Model(1).NSteps);

Error in ==> boxout at 2
[header,Fields]=gprmax2d_readprofile('box.out');

>>


以下是程序:

clc,clear
[header,Fields]=gprmax2d_readprofile('box.out');
nl=header.NSteps;
nt=header.iterations;
ez=Fields.ez;
ez=reshape(ez,nt,nl);
dy=10.0*header.dy;
dt=1.0e9*header.dt;
pcolor((1:nl)*dy+0.25,(1:nt)*dt,ez);
ascal=20;
caxis([-ascal,ascal]);
shading interp;
axis ij
xlabel('Distance(m)')
ylabel('Time(ns)')
colorbar;
fprintf('profile');
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 maybwill 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见