![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/12939281_1527743332612_DEF.jpg)
Zachary Giovanelli
Followers: 0 Following: 0
Feeds
提问
How can I run multiple for loops in one function?
Here is my code: function [Height,Range] = catapult(InitialV) % calculates at Angle 30 degrees Angle = 30; ...
6 years 前 | 1 个回答 | 0
1
个回答提问
I want to write a function that takes the output of one function and puts it into another. I am using the potential energy calculation of one equation and putting it into the kinetic energy of another but I am getting errors. I also need to plot it.
function [Penergy] = energy(start, inc, stop) % takes a range of input values for potential = start:inc:stop ...
6 years 前 | 2 个回答 | 0
2
个回答提问
I am only getting one output when I have 2 defined and 2 inputs?
I have defined 2 outputs and put in 2 inputs but I am only getting one output. I don't know the issue? I have read other documen...
6 years 前 | 1 个回答 | 0