Filter löschen
Filter löschen

How to save variable (Sum1) which is a plot , so that I can use it in later subsection to do some more computations.

1 Ansicht (letzte 30 Tage)
for ik=1:40
Image = S(ik)*((abs(Phi(:,:,ik)).^2));
Sum1= Sum1+Image;
end
mesh(fftshift(X),fftshift(Y), fftshift(abs(Sum1)),'FaceColor','flat'); view(0,90);
xlim([-2,2]); ylim([-2,2]);
axis square;
  1 Kommentar
elham kreem
elham kreem am 19 Mär. 2018
i dont know what is the fuction s(ik) .
any way . because you have Sum1= Sum1+Image , in the loop , then you must put sum1=0 , before the loop .

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by