Community Profile

# Prem Kumar Tiwari

### MathWorks

Active since 2018

#### Content Feed

View by

Use MATLAB to compute a 6-point moving average
movmean is a function in Matlab, detailed here. It can be used to quickly compute the moving average of a vector. If you have a...

ungefär 4 år ago | 0

Parameter Estimation with MATLAB code
The error is thrown because 'fun_temp' is not returning the value expected by sdo.optimize. SDO Optimize - A good read to lea...

ungefär 4 år ago | 0

How to generate a for loop which saves a figure at a given interval?
For Loops in Matlab - This is a good link to read and learn more about how "for" loops work in Matlab. I have two quick sugges...

ungefär 4 år ago | 0

Undefined function or variable 'Ybus' error ?
It's not very clear what 'load flow' refers to, in the question. It's apparent that you're talking about Simulink Models and the...

ungefär 4 år ago | 0

How do I call on a function created outside of the App Editor?
Hopefully you are using App Designer to create the GUI. You can refer to <https://in.mathworks.com/help/matlab/creating_guis/wri...

mer än 4 år ago | 0

Error while writing code for bounding phase algorithm
It would've been great if you could've stated the error that Matlab shows. However, the issue is most probably because in a ca...

mer än 4 år ago | 0

| accepted

Generalize centervalue to return the center value and a 2-element vector representing the row-column coordinate of the center. Call it centervalue2. >> centervalue2(magic(5)) ans = 13 >> [c loc] = centervalue2(magic(5)) c = 13 loc = 3 3
Hello Song, Following function will find out the center location of the given matrix mat. You can refer to the *[row, col]* ...

mer än 4 år ago | 0