Answered
Access Denied Error message while installing Matlab add on "Statistic and ML Toolbox""
If I interpret the message correctly, you have an Education license of some sort, but the user you are running MATLAB as does no...

2 years ago | 1

Answered
Why do I keep getting an fopen error in my code? [absolute beginner]
outputtextfile = fullfile(output_dir, filename); If outputtextfile were a table, then certainly fopen() would fail. However in ...

2 years ago | 0

Answered
I am trying to run my code but it isn´t work. I don´t know what is wrong whit
while n <=15 end You have the end of that while immediately after, the very next statement. You do not change n withi...

2 years ago | 0

Answered
Does Matlab/Simulink have support to the Parrot Anafi Drone - 2023a?
No in R2023b Mambo is supported. The package has not been updated for years, so I would not expect Anafi support in future...

2 years ago | 1

Answered
Manipulating data from a table in app designer
Yes? You are setting the fields to the blank string. str2double() of the blank string is NaN. str2double(" ")

2 years ago | 0

Answered
How do you set up an ode solver with a more than one function in the ode?
syms f(t) g(t) a b c df = diff(f); dg = diff(g); eqn = a*df + b*dg + f(t) + g(t) + c == 0 sol = dsolve(eqn, g) eqn2 = subs(...

2 years ago | 0

Answered
how get it?
a=magic(5) b=[1 3 2 4 5] v = a(sub2ind(size(a), b, 1:size(a,2)))

2 years ago | 0

| accepted

Answered
Shuffle matrix based on column elements
sortrows specifying column 3 to sort on. The resulting matrix will group together all of the entries with the same trial-ID

2 years ago | 0

Answered
sqrt(complex(x)) error occuring earlier than expected
It looks to me as if you might be using continuous time. As such, the ode solver is going to evaluate the function at a number o...

2 years ago | 0

| accepted

Answered
How can i make the output hide and show only when the output when the cursor is placed
I suggest that you use datacursormode instead -- which is the program equivalent of clicking to enable data tips.

2 years ago | 0

Answered
Matlab cannot find solution
vpasolve() can only be productively used when the number of equations is the same as the number of variables, and all of the equ...

2 years ago | 0

Answered
How do I fix an array which is incompatible in sizes
You are entering a non-scalar in response to the input('1000') prompt, and whatever size it is that you are entering is not the...

2 years ago | 0

Answered
Invalid argument "simscapeelectricalsps".
That structure of directory names for Simscape Electrical examples appears to be new as of R2023b. That particular example is a...

2 years ago | 2

| accepted

Answered
Code completion in editor for function return values?
This is not going to be possible in many cases. The editor would need to evaluate create_car in order to determine the data type...

2 years ago | 0

Answered
Function not supported for code generation
You will need to write your own training code. As a general rule, MATLAB Coder does not support code generation for training mos...

2 years ago | 1

| accepted

Answered
How to convert matlab class with subclass to a struct with substruct?
This cannot always be done. The graphics containers such as figures and axes are classes that contain graphic objects. The mo...

2 years ago | 0

| accepted

Answered
Why can't I get this integration to work?
syms P w0 r n lamda z real Pi = sym(pi); zR = Pi*w0^2*n/lamda; I(z) = 2*P*zR^2/(Pi*w0^2)*1/(zR^2+z^2)*exp(-2*r^2*zR^2/(w0^2...

2 years ago | 0

| accepted

Answered
fsolve with 7 equations 6 unknowns: Error using vertcat Dimensions of arrays being concatenated are not consistent
f = @(x) [0.05*F*x(1) - x(5)*x(1)*F; 0.95*F*x(4) - (1-x(5))*x(4)*F; (y_ar)+(x(2) - x(4))+(x(1) - x(3)) - ... (((...

2 years ago | 0

Answered
How to do double numerical integration and go from finding transmission coefficient in terms of energy to wave vector?
If you have a 2D numeric array, then usually you would integrate over the whole array by using two trapz() calls. Make sure you ...

2 years ago | 0

Answered
How to call a function in a particular toolbox (or overload a function name and call the original)
Your personal filtfilt.m file would have to cd to a different directory, and then run a function that removed the directory with...

2 years ago | 0

Answered
How to run a .exe program from matlab and pass console input as an argument?
You are using Windows. In the case of MATLAB for Windows, instead of using system() for this situation, use .NET methods System....

2 years ago | 0

| accepted

Answered
Pixel to mm conversion
If what you want out is a cuboid with pixels that are 1mm x 1mm x 1mm then Use imresize3 with the new size 512*0.78 by 512*0.78...

2 years ago | 0

Answered
Is it possible to connect to a mongodb database using a 2020 or older version of matlab?
R2018b documented https://www.mathworks.com/help/releases/R2018b/database/ug/database-toolbox-interface-for-mongodb-installatio...

2 years ago | 1

| accepted

Answered
Class that outputs text with formulas in livesript
What if I want my symbolic variable ddtheta to show as syms ddtheta x f = sin(x) + ddtheta subs(f, ddtheta, sym('theta_ddot'...

2 years ago | 0

Answered
Serial communication : data missing with readasync
I do not recommend readasync() because the transfer is not started until the readasync() call -- so anything that was sent after...

2 years ago | 0

Answered
How to Fix the “Dot indexing not supported for variables of this type” Error in MATLAB
load() of a .txt file never results in a struct or object so you cannot use dot indexing with it. (well, except if you use the -...

2 years ago | 0

Answered
How do I get largest distance between two rows in an nx3 matrix?
pdist -- possibly with a non-default metric.

2 years ago | 0

Discussion


full body keyboard using flag semaphore
This person used computer version to build a keyboard input, and used standard flag semaphore for the positions. Flag semaphore...

2 years ago | 7

Answered
Please answer all. it is related to Numerical linear Algebra
The identity matrix is simultaenously real, non-singular, upper triangular, and lower triangular. So code that constructs an n x...

2 years ago | 0

Answered
Order of files pulled from Datastore
datastore are processed in the order listed in the Files property. When you datastore() passing in a wildcard name or one or mo...

2 years ago | 0

| accepted

Load more