Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | Matlab DSP | Plotting an equation on a surface

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

Plotting an equation on a surface - pnalelia - Aug 24 8:12:56 2008



 
For different constant values of i and a=0:180,
 how do i plot a 3-D surface  and have like
i1=0 const
i2=45 const
13=90 const
.
.
.
.
i180=180  const
 
a=0:180 for all the values above on the same plot? The code is shown
below.

i = input('Enter the input angle in degrees: ');

a = 1:.5:180;

for j = 1:length(a)

     y(:,j) = ( 1 + cosd(2*a(j))) / (1 + cos(2*(a(j)-i)));

end;

My ultimate goal is to have a single graph with different surfaces in
3-D with variables (a, i, y) on the axes. y=z axis, a=x axis, i=y
axis. Thanks for any help
please help



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )