Community Profile

photo

Prem Kumar Tiwari

MathWorks

Active since 2018

Statistics

  • Knowledgeable Level 1
  • First Answer

View badges

Content Feed

View by

Answered
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...

nästan 3 år ago | 0

Answered
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...

nästan 3 år ago | 0

Answered
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...

nästan 3 år ago | 0

Answered
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...

nästan 3 år ago | 0

Answered
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...

ungefär 3 år ago | 0

Answered
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...

ungefär 3 år ago | 0

| accepted

Answered
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]* ...

ungefär 3 år ago | 0

Answered
how to search an ordered array/ find bracket
Hello Alessandro, Since the array is sorted already, a good way to solve similar set of problems is popularly known as Binary...

ungefär 3 år ago | 1

| accepted

Answered
How to update structure and delete entries from structure?
Hi Mark, You can do something like the following : % create an empty variable finalResults = []; % keep concat...

ungefär 3 år ago | 0