Answered
Drift removal of velocity obtained by integrating acceleration data
It turns out that even the best single-mode IMU systems encounter substantial drift https://en.wikipedia.org/wiki/Inertial_navi...

2 years ago | 0

Answered
The matlab code is about images and i havent been able to figure out to solve my problem
All four quadrants of the original image need to appear in the distorted image, but in the case of grayscale you coded ...

2 years ago | 0

Answered
How to have a compiled matlab GUI open a command-like window?
If you are not getting the DOS window then somehow you must have provided the -e option Read the following in reverse: https:...

2 years ago | 1

Answered
How to enter vector coefficients to z-transform
z = tf('z') g = [2,2.2,2.3] .'; a1 = [2, 5,8] .'; a2 =[ 1,0.3,0.4] .'; HZ = arrayfun(@(G,A1,A2) G * (1 + 2*z^-1 + z^-2) / ( ...

2 years ago | 0

| accepted

Answered
Cannot plot anything in Matlab running in Ubuntu 22.04.01
As an experiment, try restoredefaultpath; rehash toolboxcache and then try plotting. If it works, then some function in one ...

2 years ago | 0

| accepted

Answered
matlab on WSL2 Licensing error: -9,57.
See https://github.com/microsoft/WSL/issues/5352#issuecomment-699839455 for discussion of bond0

2 years ago | 0

| accepted

Answered
getting error in sloving atan function
The two-argument version of atan is named atan2 for i = 1:10 y(90+i)=atan2(-1.74908051612442,0.591783255482434)*180/pi; e...

2 years ago | 0

| accepted

Answered
When calling a function or indexing a variable, use parentheses.
The syntax for calling functions is function name followed by ( followed by a list of parameters followed by ) You are trying ...

2 years ago | 0

Answered
Numerical error in simulink
When the error is at time 0, as is the case in your example, then the problem is almost always incorrect initial values. Consid...

2 years ago | 0

Answered
Function may not have a root
td = zeros(lengtht); You initialize td to all zeros for ix=1:lengthx % Begin time loop xd_ix=xd(ix); % Set current time ...

2 years ago | 0

| accepted

Answered
How to nest temporary shock model(rho=0.01) and permanent shock model(rho=0.99) in one graph for rest similar data?
http://sims.princeton.edu/yftp/gensys/mfiles/ as described at http://sims.princeton.edu/yftp/Macro99/UsingGensys.pdf

2 years ago | 0

Answered
3D sparse matrix
MATLAB sparse matrices are strictly vectors or 2D, with no capacity for 3D. The File Exchange Contribution https://www.mathwor...

2 years ago | 0

| accepted

Answered
Unrecognized function or variable for a 'for' loop.
for A = 3 %finding tp actual for ix = 1:10 Tfun1 = @(tp) fX10B1T0(x_til(ix),tp); Tfun1 involves using the current...

2 years ago | 0

Answered
Help with error arrays have incompatible sizes
MATLAB has two closely related ways of representing characters. The older, and still valid way, is as an array of char . char a...

2 years ago | 0

Answered
Edge Table of Undirected Graph
Please show the output of which -all graph in R2023b you would expect to see just one line, a variation of /Applications/MATL...

2 years ago | 0

| accepted

Answered
this is my sample code and i have to plot 8 by 8 matrix in my actual code, the code itself is correct but it is taking forever,any other way to plot this please help
There isn't really much you can do. Your z is the sum of exponentials, and inherently involves complex numbers; there just is n...

2 years ago | 0

Answered
Maintaining links to handle objects after saving to Mat file
When you load() a handle, the handle you get back is not the same as the original handle. This is the case even if the class is ...

2 years ago | 1

Answered
how to close the previous app window when I have closed the current app window?
With difficulty. toolbox/matlab/uitools/uicomponents/components/+matlab/+ui/+internal/+controller/+platformhost/CEFFigurePlatfo...

2 years ago | 0

Answered
Issue with addpath files
First of all, you should not addpath() an individual .m file: you should addpath() the folder that the individual .m file is ins...

2 years ago | 0

Answered
how to write looping for certain area determine
Have you considered using fzero or fsolve? Those could use slope information to zoom in on the appropriate thresh The objecti...

2 years ago | 0

| accepted

Answered
check for integers and positive numbers
while floor(a) ~= a && a > 0 % Consider some examples: Suppose a = -2.5, then floor(-2.5) ~= -2.5 would be true so the first p...

2 years ago | 1

Answered
Why is colormap not displaying a value of 1 as color #1?
your gb only has two values, 0 and 1. imagesc() sets the color axes bounds to min() and max() of the array, so [0 1] in this cas...

2 years ago | 1

| accepted

Answered
Issue with Simulink and Arduino Nano 33 IoT
https://itp.nyu.edu/physcomp/introduction-to-the-nano-33-iot/ says that Pin 13 is Reset You might possibly be having difficulty...

2 years ago | 0

Answered
Variables of type "sym" cannot be combined with other models. Please help
The functions in the Control System Toolbox do not use the Symbolic Toolbox, and cannot be mixed with the symbolic toolbox at al...

2 years ago | 0

| accepted

Answered
Matlab Cannot find files or folders matching
outputFolder = fullfile('Project'); rootFolder = fullfile(outputFolder, 'Brain classification'); if ~isfolder(outputFolder);...

2 years ago | 0

Answered
How do I use a log scale for my colorbar in imagesc?
https://www.mathworks.com/matlabcentral/answers/100066-how-do-i-create-a-logarithmic-scale-colormap-or-colorbar It cannot be do...

2 years ago | 0

Answered
Error using symengine Unable to prove '2*(c1 + c2 + 1)^(1/2) == 0 & 35 < 5*c1 + 5*c2 + 5' literally.
syms c1 c2 S=50; r=15; mu=5; sigma=2; L=3; m=5; mu_ccLm=(c1+c2+(2*L)-m)*mu sigma_ccLm=((c1+c2+(2*L)-m)^0.5)*sigma ...

2 years ago | 0

| accepted

Answered
Is it possible to Run 'matlab script .m' and 'simulink model .mdl' independently on same matlab software
No, not typically. Typically the speeds would be affected. But depending on the matlab code and the model and the amount of data...

2 years ago | 0

Answered
i have made a code which finds a specific value 'no' from the excel sheet but it does the job one by one. i want to automate it so it gives all values with 'no' at once.
display = find(data.ap10cl_r=="no"); The output in display will be a column vector of numeric row indices. string() of t...

2 years ago | 0

Answered
ode45 function and solver errors for reactant conversion and temperature change
xO = [FaO TO]; those are both scalars so x0 is a vector of length 2. You have two state variables. dF = zeros(4,1); ...

2 years ago | 0

Load more