hi ,need some help in tensor case. i want to chain 3d meshgrid in once and create "image tensor" due to the movement meshgrid
2 次查看(过去 30 天)
显示 更早的评论
s = -10:10;
t = -10:10;
[S,T] = meshgrid(t,s);
L = cat(3,S,S+1,S+2,T,T+1,T+2);
r1 = rand(50,50);
r2 = rand(50,50);
rc = single(complex(r1,r2));
L = int32(L);
R = rc(L);
2 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!