how to code this in matlab?

Answers (1)

Rishabh Gupta
Rishabh Gupta on 6 May 2019
Hi Rishabh,
To start with, g(x), h(x), f(x) should be made as functions in MATLAB.
Use for loop to implement the summation.
Look at the following documentation to see how to find a minima of a function.

This question is closed.

Asked:

on 27 Apr 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!