| New Reply |
MATLAB.. For Statement [ HELP ] |
Share Thread | Thread Tools |
| Jul29-12, 02:30 PM | #1 |
|
|
MATLAB.. For Statement [ HELP ]
Hello Guys
Can you please tell me whether this code is correct or not?? this code use to calculate all distances from A to J points on the map ( has longitude and latitude ), the starting point coordinates ( Lat and Long ) is 3.682043 and 101.523710 and the destination is 2.227804 103.35091 for p1=3.682043:-0.5:2.227804 for p2=101.523710:0.5:103.735091 a5= 2.227804; b5=103.35091; [dDgree] = distance(p1,p2,a5,b5); %% this function used to find a distance between two coordinates end end |
| Jul31-12, 02:17 PM | #2 |
|
|
I've never seen a "distance" function- did you write it yourself?
|
| New Reply |
| Thread Tools | |
Similar Threads for: MATLAB.. For Statement [ HELP ]
|
||||
| Thread | Forum | Replies | ||
| Unclassifiable statement,, Unexpected data declaration statement | Programming & Comp Sci | 3 | ||
| Help! -Negate statement then reexpress as equiv positive statement | Calculus & Beyond Homework | 1 | ||
| If statement in Matlab involving time variable | Programming & Comp Sci | 1 | ||
| MATLAB giving 0 value for if/then statement | Math & Science Software | 2 | ||
| conditional statement problem in ode Matlab | Math & Science Software | 0 | ||