PhDeezNutz
- 851
- 561
Much better, the problem was that I wasn't fixing the axis limits and it was changing with each iteration in the for loop (despite the previous gif not showing it, it was apparent when I saw it rendering). I set the axis limits in stone and then proceeded to render.
As for "a way to pass a vector of values to a function that only accepts scalars (as the fourth argument)". I did the following. for i2 = 1:length(Srange)
isosurface(X,Y,Z,Smag2,Srange(i2))
hold on
xlim([-2400,2400])
ylim([-2400,2400])
zlim([-2400,2400])
xlabel('X-axis')
ylabel('Y-axis')
zlabel('Z-axis') title('Poynting Level Surfaces of Radiating Dipole') end
This was nested inside another for loop where Smag2 was defined.
Hopefully that took care of it.
The only thing left to do is take slices. Hopefully when I do this I will see more colors.
How does it look?