Register to reply

Matlab help! User defined function!

by qiyan31
Tags: defined, function, matlab, user
Share this thread:
qiyan31
#1
Nov7-12, 01:52 PM
P: 3
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!
Phys.Org News Partner Science news on Phys.org
Sapphire talk enlivens guesswork over iPhone 6
Geneticists offer clues to better rice, tomato crops
UConn makes 3-D copies of antique instrument parts
coalquay404
#2
Nov7-12, 05:13 PM
P: 218
Works fine for me. What is the precise command that you're using to test the function?


Register to reply

Related Discussions
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