Matlab help! User defined function!

  • MATLAB
  • Thread starter qiyan31
  • Start date
  • #1
3
0
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!
 

Answers and Replies

  • #2
216
1
Works fine for me. What is the precise command that you're using to test the function?
 

Related Threads on Matlab help! User defined function!

Replies
2
Views
3K
Replies
1
Views
2K
Replies
4
Views
4K
Replies
0
Views
818
Replies
3
Views
3K
Replies
1
Views
2K
  • Last Post
Replies
4
Views
2K
Replies
18
Views
1K
Replies
3
Views
2K
  • Last Post
Replies
1
Views
2K
Top