how to calculate this equation in matlab?
1 次查看（过去 30 天）
Harsh Kumar 2023-6-15
编辑：Harsh Kumar 2023-6-15
Hi Kajal ,
It is my understanding that you are interested in generating a program for the above mentioned mathematical equation.
You can use the concept of 'Nested Loop' to iterate over the two variables i.e, r and j for addition and multiplication respectively.
Please refer to the below code snippet for better understanding.
n=input('enter the value of n=')
i=input('enter the value of i=')
%variable to store product of terms
s=0; %sum variable