Ayush Modi

Last seen: Today Active since 2023

Followers: 0   Following: 0

Feeds

View by

Taylor expansion with symbolic toolbox
Hi Insaf, I am assuming, you want to find the approximate with the Taylor series expansion of f up to the second order. You ca...

10 hours ago | 0

Looking for a good source for using 2D Fast Fourier Transforms
Hi William, You can find 2D Fast Fourier Transform in MATLAB using "fft2" function. Refer to the following MathWorks documentat...

18 days ago | 0

equation as an output
Hi Clara, Yes, you can create a function in MATLAB that returns another function (a function handle to be precise) as its outpu...

18 days ago | 0

Out of memory when solving large system of non-linear equations (fsolve, fminunc, ...)
Hi Kai, While it is difficult to pinpoint exact solution for "Out of memory" error, you can try the following workarounds: Add...

19 days ago | 0

solving systems of equations but returns empty solutions
Hi Nicky, The reason "solve" function is returning an empty solution is because the set of equations you are trying to solve do...

20 days ago | 0

How use fmincon for a function with many variables?
Hi Reihaneh, I understand you want to minimize the given cost function using "fmincon" variable but having difficulty due to mu...

20 days ago | 0

How to find all double expressions added to a very long formula?
Hi Yusuf, I understand you want to get the coefficient values of all the terms which contains thetadot1*thetadot2. You can ach...

20 days ago | 0

Using operators for syms
Hi Majid, Please note that; with the given values, the result of adding A and B should be - (3*S) + 5/( S^2+4*S+3) Assuming ...

20 days ago | 0

splitting a large column into smaller columns
Hi Ahmed, You can use "reshape" function to reshape array by rearranging existing elements. However, "reshape" function require...

20 days ago | 0

Create variables and vectors dynamically
Hi CarAnAlb, MATLAB is optimized for operations involving matrices and vectors. The process of revising loop-based to use MATLA...

22 days ago | 0

Parse Error when using Syms
Hi Karo, Error indicates that the use of syms is incorrect as MATLAB is interpreting the line "syms = Y_1(x) Y_2(x) Y_3(x) Y_4(...

22 days ago | 0

Solve equation with multiple variables
Hi Felix, You can solve a system of equations using "solve" function of MATLAB. Here is the example code to get you started: ...

23 days ago | 0

How to find the minimum using Newton method (matlab)
Hi Nikoo, I understand you are trying to implement the Newton's method for finding the minimum of the given function. Here is ...

23 days ago | 0

Is it possible to generate MCDC coverage testcases from a boolean Matlab function?
Hi George, I understand you want to write a boolean MATLAB function and do a MC/DC analysis for that function. You can use Simu...

24 days ago | 0

Simscape block pip (G)
Hi, The pressure drop calculation done by the block Pipe (G) in Simscape contains two parts: The pressure losses due to moment...

2 months ago | 0

How to calculate the determination coefficient R^2 with two matrix ?
Hi Albert, You can calculate the covariance between two matrices A and B using "cov" function. To calculate covariance for each...

2 months ago | 1

| accepted

GCC Error When Compiling S-Function
Hi Gourav, The error message generated by the gcc compiler suggests that the "gcc" is unable to find the file which have to be ...

2 months ago | 0

How to import 'kfoldPredict' for old version matlab (2023a)
Hi Evelyn, "kfoldPredict" function was introduced in r2011a. You can use the function in r2023 as well. However, "kfoldPredict...

2 months ago | 0

I am getting "Swing is not available error"
Hi Gourav, This is an bug with "importONNXNetwork" function. As a workaround, you can follow the below steps:        1.   Run ...

2 months ago | 0

Unable to obtain double precision from symbolic value
Hi Bamelari, You can convert the symbolic value into double precision value using double method. Here is a sample code to demon...

2 months ago | 0

Zoom breaks UIFigureWindowKeyPress in App Designer
Hi Zel, When the zoom mode is enabled(using zoom icon or by zoom function), the control stays with the function. The UIFigureW...

2 months ago | 0

| accepted

Storing output values from a for loop into an "array"
Hi Ammar, I am assuming you want to append the kp_root values you obtain in each iteration of for loop and store them in the va...

2 months ago | 0

| accepted

Possibility of dropdown from a toolbar button in app designer?
Hi Ian, I am assuming by upper toolbar, you mean the Push Tool button in the toolbar of the App Designer. Yes, you can have a d...

2 months ago | 0

Incorrect results of inverse tall array
Hi Chen, Your code looks good to me. The issue might be with the data. I tested the code with randomly generated matrix as wel...

3 months ago | 0

Alternative to interp2
Hi, "griddedInterpolant" function will run faster and is recommended by MathWorks as an alternative to calling "interp2" multip...

3 months ago | 1

How to show the output on the right side of the coding pane?
Hi Asuka, Outputs are generated on the right side of the code panel in 'Live Editor' which is what you are using in the second ...

3 months ago | 0

| accepted

Inverse huge matrix with tall array
Hi Chen, "If I use my verctor b, it shows an error with incompatible tall array argument in tall/qrLeftSolve." Operator '\' re...

3 months ago | 0

The plot for Frequency Domain Signal wont show up, where is the problem?
Hi, When running the provided code, with the attached file, variable t_f is being calculated to NaN values. % Output of disp(t...

3 months ago | 1