回答済み
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...

10ヶ月 前 | 0

| 採用済み

回答済み
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...

10ヶ月 前 | 0

| 採用済み

回答済み
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)) - ... (((...

10ヶ月 前 | 0

回答済み
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 ...

10ヶ月 前 | 0

回答済み
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...

10ヶ月 前 | 0

回答済み
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....

10ヶ月 前 | 0

| 採用済み

回答済み
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...

10ヶ月 前 | 0

回答済み
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...

10ヶ月 前 | 1

| 採用済み

回答済み
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'...

10ヶ月 前 | 0

回答済み
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...

10ヶ月 前 | 0

回答済み
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 -...

10ヶ月 前 | 0

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

10ヶ月 前 | 0

回答済み
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...

10ヶ月 前 | 0

回答済み
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...

10ヶ月 前 | 0

| 採用済み

回答済み
Can I use student's license for my Master's degree thesis, which is related to a project being developed in the company I work for?
Only if the company is not given the results any more than a copy of the thesis (that would have to be made publicly available),...

10ヶ月 前 | 0

回答済み
How could I calculate the correct Laplace Inverse using ilaplace()?
https://www.mathworks.com/matlabcentral/answers/1437209-how-to-simplify-function-handles#comment_1698679 has code that can conv...

10ヶ月 前 | 0

回答済み
Matrix Size Mismatch for Heat Conduction - 1x1 vs 50x100x101
T and rho are both 3D matrices. T(i,j,step+1) = (dt*k*(r(i) - 1/2))/(rho*Cpg*dr^2*r(i))*T(i-1,j,step) + (dt*k*(r(i...

10ヶ月 前 | 0

回答済み
Error in cumtrapz. Input arguments to function include colon operator. To input the colon character, use ':' instead.
Change cumtrapz(f,sat) to cumtrapz(sat, f(sat))

10ヶ月 前 | 1

回答済み
matlabpath - order not respected?
Matlab should use the first function on the path with the matching name, shouldn't it? No. https://www.mathworks.com/help/matla...

10ヶ月 前 | 0

| 採用済み

回答済み
Run selection disabled and appears option of debugging (continue, step in, step out, stop) on the toolbar. Now I can't run any code
In my experience, you have to save the mlx file before you can run it. This is unlike .m files -- those offer the possibility to...

10ヶ月 前 | 0

回答済み
Difference between the griddata and the source data when creating contour
griddata() is based upon first triangulating the input points (unless 'v4' method is specified). triangulation of sparse 3D surf...

10ヶ月 前 | 1

| 採用済み

回答済み
Why won't my code run even though it has no errors
plot(1:n, T, 'o-'); Inside your loop you use n to index the location you are writing to inside the T matrix, and then you incre...

10ヶ月 前 | 0

回答済み
Email account that will work with sendmail
Did you try the suggestion in https://www.mathworks.com/matlabcentral/answers/1672544-using-gmail-after-may-30-2022#answer_91957...

10ヶ月 前 | 0

| 採用済み

回答済み
Script that returns the square of a prompted number
See fprintf

10ヶ月 前 | 0

| 採用済み

回答済み
Lack of function_handle arrays
Suppose you have f = @(x)x+1 then what is f(1) ? If hypothetically matlab supported function handle arrays th...

10ヶ月 前 | 2

回答済み
im trying to run matlab video processing code and getting this error "Index in position 1 exceeds array bounds (must not exceed 1).
text = sprintf('x: %d, y: %d', x2, y2); After that line text is now a variable rather than a function.

10ヶ月 前 | 0

回答済み
extract column from 3D meshgrid and griddata matrices
See squeeze But more likely you would just use plot(Z(:), u_int(:)) for this very odd case where your x and y are scalars.

10ヶ月 前 | 0

| 採用済み

回答済み
what is fnn (not FNN)
The code for function fnn starts from line 228 of the file you indicated. The code appears to work when I test in R2023b -- pro...

10ヶ月 前 | 0

回答済み
i need to plot equation w(t) = symsum(dirac(t-k*Ts),k,-Inf,Inf) in discrete time signal.
Dirac delta is a distribution rather than a function. It can be treated as a distribution in an integration, in which case the ...

10ヶ月 前 | 0

回答済み
Why isn't the 5G toolbox available for students/home users?
The reason why the 5G Toolbox cannot be purchased for the Student license is likely that at present Mathworks believes that ther...

10ヶ月 前 | 0

さらに読み込む