Community Profile

photo

Jose De La Pena


Last seen: 12 months ago Active since 2019

Statistics

  • Thankful Level 1

View badges

Content Feed

View by

Question


User-Defined function to add polynomials
function p= polyno(p1,p2,operation) %Write a user-defined function that adds are substract polynomials of any two orders len...

2 years ago | 0 answers | 0

0

answers

Question


Is there a mistake with my code to calculate ballistic trajectory?
function [x,y]= DeLaPena_Trajectory(velocity,angle) %Fucntion that calculates x and y position of ball %Inputs: Velocity(m/s) ...

2 years ago | 1 answer | 0

1

answer

Question


How do I get two values of a function when using a loop?
%Ball Trajectory Graph %Define the for loop first velocity= [30,40,47.16]; angle=[5,7.5,10,30,45,60]; for ii=1:length(ve...

2 years ago | 1 answer | 0

1

answer

Question


How to use loops for specific numbers
So, I have a projectile for which I have created a User-Defined function for, however, the question asks to use the user defined...

2 years ago | 1 answer | 0

1

answer

Question


Hello fellow coders, I ran into a predicament for a code to calculate the time differnce in A.M, and P.M
function [dt]= timediff(TA,ap1,TB,ap2) %This function will calculate the time difference between two times AM,PM %Input:TA= a ...

2 years ago | 1 answer | 0

1

answer

Question


Using a For Loop to calculate the pi for a taylor series
Write a program (using a loop) that determines for a given n. Run the program with n = 10, n = 100, and n = 1,000. Compare the ...

2 years ago | 2 answers | 0

2

answers