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

Discussion Groups

Discussion Groups | Matlab DSP | Trouble with debugging Matlab Code - Have searched for a soln but no luck:

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

  

Post a new Thread

Trouble with debugging Matlab Code - Have searched for a soln but no luck: - "aaron.judy" - Mar 7 12:38:03 2008



Here is the code:

clear
clc
g = 32.2
row = 0.00238
prompt = {'Enter the UAV weight in lbs:', 'Enter the UAV Max airspeed 
in knots:', 'Enter the UAV Max altitude in feet:','Enter the UAV loss 
of comms in seconds:'};
title = 'Hazard Pattern Dynamic Data';
lines = 1;
answerdynamic = inputdlg(prompt, title, lines);

button=questdlg('Does the UAV contain a parachute?', 'Yes','No');
if strcmp(button, 'Yes');
    prompt = {'What is the parachute Cd?','What is the parachute 
cross sectional area in feet squared?'};
    title = 'Parachute Information';
    lines = 1;
    answerpara = inputdlg(prompt, title, lines);
else
end
WT=answerdynamic{1,1}
VS=answerdynamic{2,1}
ALT=answerdynamic{3,1}
COMM=answerdynamic{4,1}
CD=answerpara{1,1}
CAREA=answerpara{2,1}

Dist=(VS*(0.59209))*COMM
The Problem is computing Dist I get an uknown error in Matlab?  
Anyone ever seen this before?


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