Clear Filters
Clear Filters

hi ,need some help in tensor case. i want to chain 3d meshgrid in once and create "image tensor" due to the movement meshgrid

1 view (last 30 days)
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);

Answers (0)

Community Treasure Hunt

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

Start Hunting!