Community Profile

photo

Anup


Last seen: 20 days ago Active since 2022

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


I am getting non-linear constraint error in the optimization problem
I am getting this error while solving the optimization problem using 'intlinprog' solver. The error I am getting is: ...

21 days ago | 1 answer | 0

1

answer

Question


How to solve the optimization problem where constraint is calculated thorough the loop?
I have a matlab code which contains loop and has a structure similar to following (ignore the syntax). I am trying to use matlab...

25 days ago | 1 answer | 0

1

answer

Question


Why calling the functions works fine in the first run, but causes error after that?
I have a function as below: function p1 = p1(d,i,N) a = 1./(d-i); b = ((1+i)./(1+d)).^N; p1 = a.*(1-b); e...

1 year ago | 1 answer | 0

1

answer

Question


Why there is error in using interp2 while assigning loaded data to the variable?
I have a separate struct data file (.mat format) which I need to load and perform interp2. The struct data file is as in the fi...

1 year ago | 1 answer | 0

1

answer

Question


How to use interpolate struct data in simulink?
I have a struct data file in .mat format. I can use interp2 to interpolate the data from this struct data file in matlab. f...

1 year ago | 1 answer | 0

1

answer

Question


How to send variable signals in Simulink?
I have the signal I need to use in simulink model. The x-axis is time step while the y-axis is the value at each time step. I ...

1 year ago | 1 answer | 0

1

answer

Question


How to give initial value to the subsystem to use for the first time step and then use values from the loop?
I have multiple subsystem in a simulink interconnected with each other. The output of first subsystem is input to second while t...

1 year ago | 1 answer | 0

1

answer

Question


Why the out varies largely in fixed versus variable time step?
I have a model as shown, for fixed time step the output from the scope 1 is for variable step, the output is why the...

1 year ago | 1 answer | 0

1

answer

Question


How to change initial value of Simulink Integrator at each time step?
I have differential equation like this, with initial value of 298, the T value starts increasing with time. After T > 350, s...

1 year ago | 1 answer | 0

1

answer

Question


How do I solve differential that is not w.r.t time in simulink?
I have this differential equation which is with respect to volume not . I am in confusion how to solve this equation as simulink...

1 year ago | 1 answer | 0

1

answer

Question


How do I run same subsystem for certain number of times in Simulink?
I have a subsystem in Simulink. I need to run the same subsystem for a certain number of times. The output of first subsystem wo...

1 year ago | 1 answer | 0

1

answer

Question


How to solve this differential equation using matlab?
I know the value of n_(j-1), T_(j-1) and n_(j). I want to solve this differential equation and get the numerical solution. H...

1 year ago | 0 answers | 0

0

answers

Question


How to define a constant inside the 'fittype' function?
function [fitresult, gof] = createFit(i1, v1,s,T1) [xData, yData] = prepareCurveData( i1, v1 ); % Set up fittype ft = fit...

1 year ago | 2 answers | 0

2

answers

Question


How can I fit curve quadratically such that fit goes like in the picture?
I want to fit the curve based on equation f(x) = b1+b2*x+b3*(x^2) I got the curve as shown in the fiqure below: I mean, th...

1 year ago | 2 answers | 0

2

answers

Question


How do you simulate Alkaline Water Electrolyzer in Simulink?
I need to simulate alkaline electrolyzer stack for production of hydrogen through electrolysis. However, I am unable to find blo...

1 year ago | 1 answer | 0

1

answer