Matlab Code
Not what you're looking for?
** Please see the attached file for the complete problem description **
Please prepare a simple and basic MATLAB code for the 2 attached problems. M-file and word documents with comments will help me understand the codes better.
Thank you.
3) Write a recursive function computing the sum of cubes of all integers between 1 and N.
4) Write a MATLAB function 'reflect_my' performing symmetrical reflection of an array. In other words for the initial array 1 2 5 7 9, a symmetrical reflection should give 9 7 5 2 1.
(i) Write a MATLAB code based on a recursive algorithm
(ii)Write a MATLAB code based on a non-recursive algorithm
Purchase this Solution
Solution Summary
In this solution we show how to write a MATLAB code based on a number of different given criteria.
Solution Preview
** Please see the attached files for the complete solution **
The solution is included in the attached .m files.
Thank you for using BrainMass.com. I hope that this solution helps you with your assignment.
function sum = recur(begin,last)
if begin == last
sum = ...
Purchase this Solution
Free BrainMass Quizzes
Solving quadratic inequalities
This quiz test you on how well you are familiar with solving quadratic inequalities.
Graphs and Functions
This quiz helps you easily identify a function and test your understanding of ranges, domains , function inverses and transformations.
Geometry - Real Life Application Problems
Understanding of how geometry applies to in real-world contexts
Know Your Linear Equations
Each question is a choice-summary multiple choice question that will present you with a linear equation and then make 4 statements about that equation. You must determine which of the 4 statements are true (if any) in regards to the equation.
Multiplying Complex Numbers
This is a short quiz to check your understanding of multiplication of complex numbers in rectangular form.