Answered
How to use Mask parameters in InitFcn
You Can access the block parameters of masked subsystem using get_param and change the block parameter using set_param. You can...

ongeveer 4 jaar ago | 0

| accepted

Answered
Numerical Analysis - 2nd Order Taylor Method to Solve IVP Problem With Code
I understand, you want to solve the IVP with 2ndorder Tayler Method. In your code the error occurs during computation of partial...

ongeveer 4 jaar ago | 0

Answered
Pulling from continuously changing variable every x seconds
I understand you want to take data from the ramp source in a specific time interval. To do this a Pulse generator and a Sample &...

ongeveer 4 jaar ago | 0

| accepted

Answered
dsolve Indexing Error - system of ODE's
In this case dsolve cannot find an explicit or implicit solution. You try to find a numeric solution using the MATLAB® ode23 or ...

ongeveer 4 jaar ago | 0

Answered
Plotting multiple figures: one figure doesnt show and the other is wrong
The three plots are not visible due to following reasons- The difference between ‘sbx’ and ‘sbxy’ lies in the range of 10-7 . A...

ongeveer 4 jaar ago | 0

| accepted

Answered
finding matches and unique data in two large data sets and output unique and matching data
I understand you are trying to find matched and unique data between two different datasets. The function ismemberwill be appropr...

ongeveer 4 jaar ago | 0

Answered
How to generate a loop for the problem mentioned in the context
Hi, I understand you are getting issues in calculating sum of the given expression. You can do this using MATLAB Symbolic Toolbo...

ongeveer 4 jaar ago | 0

Answered
Coefficients from a symbolic 'nested' function
Hi, I understand you are getting issues in removing all the coefficients from a given equation. You can do this by doing followi...

ongeveer 4 jaar ago | 0

Answered
arrange repeated elements in an array then find a 95% confidence interval
Hi, I understand you are getting issues in categorizing and plotting some sample data. You may use find function to get the inde...

ongeveer 4 jaar ago | 0

Answered
Solving differential equations with inital conditions
Hi, I understand you are getting warning and error in solving the system of differential equation. The warning is due to the ode...

ongeveer 4 jaar ago | 0

Answered
How to solve unknown number of equations
Hi Yagna, You can solve the same equations using solve function in MATLAB. Here is a sample code for it. clc; clear all; %...

ongeveer 4 jaar ago | 0

Answered
help with analysis currents measurement plot.
Hi Freddy, You can extract current values from the txt file by the help of find function of MATLAB.Here is the code for it. clc...

ongeveer 4 jaar ago | 0

Answered
How to get a transfer function for a dynamic model that is only a function of time?
Hi, I understand you are trying get transfer function from a differential equation having only one variable i.e. time. It can be...

ongeveer 4 jaar ago | 0

Answered
Plotting first-order differential equation with initial condition
Hi, I understand you are trying to plot the differential equation. The issue while plotting with ode45 is it tries to solve it n...

ongeveer 4 jaar ago | 1

| accepted

Answered
Dealing with symbolic parameter in a DAE
Hi, I understand you are trying to solve DAEs Using Mass Matrix Solvers. The error is due to missing input argument of the odeF...

ongeveer 4 jaar ago | 0

| accepted

Answered
Please help! pdepe does not stop!!
Hi, I understand you are trying to solve this partial differential equation. You can do this by using pdepe. Here is a sample co...

ongeveer 4 jaar ago | 0

Answered
Energy Balance Differential Equation
Hi, I understand you are trying to solve the equation. You can do this using dsolve. Here is a sample code. clc; clear all; ...

ongeveer 4 jaar ago | 0

Answered
How to solve unknown number of equations
Hi, I understand you are trying to create number of equations. You can do this using syms. Here is a sample code. clc; clear...

ongeveer 4 jaar ago | 0

Answered
help with analysis currents measurement plot.
Hi, you can load data using textscan and plot the graph using plotfunction. Here is a sample code. clc; clear all; fid=fopen(...

ongeveer 4 jaar ago | 1

Answered
How to solve a transcendental equation?
Hi, I understand you are trying to solve this equation having complex roots. You can solve the equation using solvefunction. Her...

ongeveer 4 jaar ago | 0

Answered
Optimizing the output of ode45 by varying a parameter
Hi, I understand that you are trying to find maximum value of V for a range of R. Here is a sample code. ‘V_max’ gives maximum V...

ongeveer 4 jaar ago | 0

| accepted

Answered
Getting General Solution Using dsolve
Hi, I understand that you are not able to find solution through dsolve. The function dsolve can solve differential equations whe...

ongeveer 4 jaar ago | 0

Answered
I have .mat file that has a size of 1374x2. How do I load this in to variable that can be used inside a function?
Hi, I understand you are getting error in loading a MAT file. Here is a sample code for this, in which MAT file is created using...

meer dan 4 jaar ago | 0

Answered
Matlab error: Index in position 2 exceeds array bounds (must not exceed 737). Error in FinalLaser (line 57) test_imb=imagebb(test_xmin-x_disp_max:test_xmax+x_disp_max, test_ymin-y_disp_max:test_ymax+y_disp_max);
Hi, it is difficult to provide an exact solution without your original data. However, when I executed your code using demo data,...

meer dan 4 jaar ago | 0

Answered
Matrix Manipulation/Shifting
Hi, I understand you are trying to shift matrix using imwarp function. You can do this by manipulating Displacement field of th...

meer dan 4 jaar ago | 0

| accepted

Answered
Simulink: Variable inferred as variable size matrix when defined from constant blocks
Hi, you can do that by changing the size of that input as Variable Size. Go to the Function Editor > Edit Data > Mark as Variab...

meer dan 4 jaar ago | 0

Answered
overlap and plot frequency response of filters
Hi, You can do that by changing the Configuration properties of the Scope block. Configuration Properties > Number of input por...

meer dan 4 jaar ago | 0

Answered
The following error occurred converting from sym to double: Unable to convert expression into double array. Error in PartB (line 21) p_hat(i) = P(i)+(a1*u(i-1))+(a2*du(i-1))+(a3*ddu(i-1));
Hi, when I executed your code and my understanding is that the error is due to it is trying to access an data which is not compu...

meer dan 4 jaar ago | 0

Answered
in simulink for fourier transformation I do not get any answer in frequency output.
Hi, I simulated your Simulink design. Here is a working solution to the issue, instead of using “Vector Scope” try “Scope” Block...

meer dan 4 jaar ago | 0

Answered
Plotting results of DFT loop
Hi, it is difficult to provide an exact solution without your original data. However, when I executed your code using random dat...

meer dan 4 jaar ago | 0

| accepted