Community Profile

photo

Guru Mohanty

Last seen: 3 months ago Active since 2020

Statistics

All
  • Knowledgeable Level 3
  • 3 Month Streak
  • Knowledgeable Level 2
  • Revival Level 3
  • First Answer

View badges

Content Feed

View by

Channel


Mask Detector
Test the Mask Detector

2 years ago

Answered
Count connections in model
You can count the number of connections under a mask with the help of the following block parameter setting. lineHandles = find...

2 years ago | 0

Answered
True or false to elements of a cell array?
Hi, I understand you are getting some problem with your code. The error is due to these following reasons. In the Line if ...

2 years ago | 0

| accepted

Answered
simulation of matmatical equestions
The model for the differential equation appears to be correct. Meanwhile, you can go through this to model ODEs using Simulink. ...

2 years ago | 0

Answered
Connecting 2 signals in Simulink gives an error about data type
Hi, error in the model is due to the Product block. Its two inputs are of datatype 'int8' and 'double' and the output is of type...

2 years ago | 0

Answered
How to make a checkerboard function
Hi, I understand you are trying to make a checkerboard function. You can do this by two nested for loops. Here is a sample code ...

2 years ago | 0

Answered
Combining XY plots with arbitrary line shapes (combining spectra)
Hi, I understand you are trying to plot common elements between two datasets. You can use intersect function to get an overlap b...

2 years ago | 0

| accepted

Answered
how to read from disk a text file containing columns of numbers and columns of characters
Hi, I understand you are trying to read data from a txt file and store processed data in another txt file. You can do this using...

2 years ago | 0

| accepted

Answered
How can I plot the Shockley Queisser Limit?
Hi, I understand you are trying to plot Shockley Queisser. You can plot by these following steps. clc;clear all; Eg = linspace...

2 years ago | 0

| accepted

Answered
Simscape - Cable and pulley
Hi, I understand you are trying to model a pulley system using simscape. Here is a simple example of a pulley system. ...

2 years ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 13). , code to operate an IEEE 14/30 bus im looking into using WLS method. added a few details in order to plot the estimated vs real data. cannot work. please help!
Hi, I tried to execute your code with some random input. The error in your code is due to the following line tol = 5; while(to...

2 years ago | 0

| accepted

Answered
QCQP error of fmincon: Row dimension of A is inconsistent with length of b.
Hi, I Understand you are trying to minimize C with the discission variable dp. To use fmincon function ie min(f) the condition i...

2 years ago | 0

Answered
how to add output port in Ideal three-phase VI measurements?
Hi, I understand you are trying to visualize VI Measurement of a 3 phase system through a scope. You can use a Three-Phase V-I M...

2 years ago | 0

| accepted

Answered
symbolic derivative of lagrangian & kinematic coefficient
Hi, I understand you want to find the first and second derivative of the following expression. You can do this by the following ...

2 years ago | 0

Answered
Solving ODE with two variables and derivatives
Hi, I understand you are trying to solve the system of two variable ODE. Numerically, you can do this using ode45. Here is the m...

2 years ago | 0

Answered
How can I take the time derivative of a function?
Symbolic toolbox can be used in your case. To do this you need to do the following steps. Declare the variables using syms. Bu...

2 years ago | 0

Answered
help ㅜㅜㅜㅜㅜ Convert formulas to Mathlab code
You can define this integral using following steps: Declare constants and variables. Use syms to declare a symbolic variable. ...

2 years ago | 0

Answered
Solving for an mathematical expression under certain parametric conditions
Hi, I understand you want to solve a equation under some parametric condition. To set some parametric condition you can use assu...

2 years ago | 0

Answered
how to create a custom resistor
Hi I understand you want to create custom resistor using simscape. You can do it through following steps. Simulink To PS Conver...

2 years ago | 0

Answered
I cannot solve the vpasolve using a symbolic function. Symbolic equal to Inf
Hi, I understand you are trying to solve these equations using vpasolve. In your code there are some undeclared variables as 'Re...

2 years ago | 1

Answered
How to create a loop that runs a function and save output through subfolders in a directory?
Hi, I understand you are trying to access subfolders and write data into it. You can access the content of subfolder by these fo...

2 years ago | 0

Answered
Generate long piecewise function
Hi, you want to get piecewise value of the slope between two heights. You can use interp1and gradientfunction for this. Here is...

2 years ago | 0

Answered
Fractional derivative to solve ODE in the sense of Caputo
Hi, I have gone through your code. I think you are getting Array indexing error. Its due to these following reasons. In this s...

2 years ago | 1

Answered
understanding DDE23 function format
I understand you are trying to solve system of differential equation using ‘dde23’. To do this you need to do following steps. ...

2 years ago | 0

| accepted

Answered
how can i create discrete square wave with simulink
I understand you are trying to create a discrete square wave using Simulink. It can be done using Signal Generator and Zero Orde...

2 years ago | 0

Answered
Extracting from vector to multidimensional array using indices provided
I understand you are trying to extract data from a vector to multidimensional array without for loops. It can be possible using...

2 years ago | 0

Answered
ODE SYSTEM OF EQUATION
I understand you are trying to solve system of ODEs using RK iteration. The error occurred in the iteration due to following rea...

2 years ago | 0

Answered
How to find the minimum of a three variable function (optimization)?
To find Minimum of a three variable function you follow these two processes. Using Symbolic Toolbox Define your variables usin...

2 years ago | 0

Answered
Bifurcation Diagram of Logistic Equation -- Unnecessary Lines in Code?
After debugging your code, it seems the section of code you mentioned is irreverent, because of following reasons. for i = 1:20...

2 years ago | 0

Answered
minimize the error between calculated values and experimental results
Hi, I understand you are trying to minimize error for given set of data. The error in your code is due the fact that the functio...

2 years ago | 0

| accepted

Load more