1 - Atleast give 4 test cases while submitting a problem.
2 - Do not give the solution in your function template (I have removed it)
3 - If you don't know how to ensure that certain function(s) are used or not, see other problems. For e.g Restricted Addition series.
4 - Makes these necessary changes soon or the problem will be brought down until you make those changes, given the trivial nature of your problem right now.
@Dyuman Joshi thx for your advice but I am new to matlab and I don't know how to do all that stuff if you don't mind could I get your email for further queries I have
Errors in the test suite have been corrected.
Energy of a photon
Arrange vector in ascending order
Create matrix of replicated elements
select the primes of a vector
Find the treasures in MATLAB Central and discover how the community can help you!
Select a Web
Choose a web site to get translated content where available and see local events and
offers. Based on
your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country
sites are not optimized for visits from your location.
Contact your local office