New Reply

Matlab help! User defined function!

 
Share Thread Thread Tools
Nov7-12, 01:52 PM   #1
 

Matlab help! User defined function!


I made a user-defined function for Height.
function Ht=Height(t,V,Theta);
Ht=V*t*sin(Theta)-4.9*t.^2;
end

V is initial velocity, and i kept on getting input "V" is undefined.
Can someone help me plz!
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Bird's playlist could signal mental strengths and weaknesses
>> Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms
>> Bacterium uses natural 'thermometer' to trigger diarrheal disease, scientists find
Nov7-12, 05:13 PM   #2
 
Works fine for me. What is the precise command that you're using to test the function?
New Reply
Thread Tools


Similar Threads for: Matlab help! User defined function!
Thread Forum Replies
Matlab help! User defined function! Engineering, Comp Sci, & Technology Homework 5
c++ User-defined function to calculate the smaller string? Engineering, Comp Sci, & Technology Homework 1
Mathematica: Nested User defined function Math & Science Software 2
MATLAB user defined inverse fourier transform Engineering, Comp Sci, & Technology Homework 1
a matlab question(about user defined functions) Math & Science Software 0