Answered
Contains in cells extracted from a structure runs into char class problems
abc = {'def', 'gaha', 'hello'} contains(abc, 'gaha') so contains() works properly for cell arrays of character vectors. This...

1 year ago | 1

| accepted

Answered
How to Transmit and Receive Simultaneously Using USRP B210 in MATLAB
https://www.mathworks.com/matlabcentral/answers/1578660-how-to-transmit-and-receive-using-single-usrp-b210#answer_823530 The B...

1 year ago | 1

| accepted

Answered
How to I solve following meijerG function
syms a b epsilon meijerG((1-b)/2, [], [a/2, -a/2], [], epsilon) char(ans)

1 year ago | 0

Answered
Creating Single-Use Password for .exe app Created in MATLAB
In order to do what you want, you would have to program a control that connected to a server and authenticated to the server, wi...

1 year ago | 0

Answered
Compatibility of Matlab Compiler
You need the MATLAB r2024b version of MCR <https://www.mathworks.com/products/compiler/matlab-runtime.html>

1 year ago | 1

| accepted

Answered
MATLAB Simulink student license
No, it does not include the C2000 blockset. The C2000 blockset is not available at all for the Student license. You could pote...

1 year ago | 0

| accepted

Answered
Single and Multi-objective optimization
You can potentially use linear inequalities -- the A and b matrix. linear inequalities are accepted by all forms of ga() and ga...

1 year ago | 1

| accepted

Answered
How to spot infinite loops
for loops are never infinite. while loops are potentially infinite. You need to ensure that for sure at some point at least one...

1 year ago | 1

Answered
How to sort filenames that are stored by dir command
"dir" command read files in false order dir() returns file names in the order returned by the operating system. In turn, the op...

1 year ago | 0

Answered
truncated rowname in uitable
Adjust the ColumnWidth property of the uitable. https://www.mathworks.com/help/matlab/ref/uitable.html#br5rl9k_sep_bvboy7l-1-Co...

1 year ago | 0

Answered
draw more date in the axis
load matlab_Xdates load matlab_TeStrum load matlab_fig Ax_Eq.Parent Somehow, you have an axes that has no Parent, so gca i...

1 year ago | 0

| accepted

Answered
Cannot install Symbolic Math Toolbox.
I predict that the problem is that you do not have R2024b and you do not have current Software Maintenance Service, and you atte...

1 year ago | 0

Answered
How to set eps^n =0 for all n>= 10 where eps is a symbolic variable.
mapSymType(x, 'power', @(X) piecewise(children(X,1)==eps & children(X,2)>10, 0, X)) However, eps is normally a function in MATL...

1 year ago | 0

| accepted

Answered
sqlread specific columns/variables from a MySQL table
opts = setoptions(opts, 'SelectedVariableNames', {'wanted_column'}); You had 'SelectedVaraibleNames' instead of 'SelectedVaria...

1 year ago | 0

Answered
Which matlab will i be able to use in my pc?
Provided that you have Windows 7 SP1, then you are restricted to R2015b or earlier. R2015b was the last 32 bit version of MATLAB...

1 year ago | 0

Answered
My previous question was closed - fair enough - but I am not a student doing homework but 69 years old - and in the past you helped me to solve 7 polynomial
syms s x v w eqn = s*x+1i == (x^2*v^2/w^2 + v^2)^(1/2) sol = solve(eqn, x) sol1 = solve(eqn, x, 'returnconditions', true) so...

1 year ago | 0

| accepted

Discussion


R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.

1 year ago | 9

Answered
draw more date in the axis
Use xticks If you must report every week, then you will probably want to use xtickangle

1 year ago | 0

Answered
I am using roots command for a complicated equation to find out the roots but in return it is giving me roots command in it . How can I solve this?
Dr = solve(Dc, Rh, 'maxdegree', 3); The output is likely to be somewhat long.

1 year ago | 0

Answered
Can the number of points in current function in Matlab Antenna Toolbox be manually assigned?
The mesh() operation creates a mixed triangular and tetrahedral mesh dividing up the 3D space. Techniques similar to delaunay tr...

1 year ago | 0

Answered
Complex multiplication giving incorrect result
For the given A, the prod() is completely real. A = 1.0e+08 *[-1.1051 + 0.0000i, -0.4594 + 1.8182i, -0.4594 - 1.8182i, -0.2...

1 year ago | 0

| accepted

Answered
Finding a circle in a 2D array
There are no functions to find circles in "images" : there are only functions to find circles in arrays. When it is necessary to...

1 year ago | 1

Answered
Capturing Lossless Images with Image Acquisition Toolbox (getsnasphot)
YUY2_3840x2160 is already compressed with a lossy compression compared to rgb. Each 1x2 rgb block is represented by 8 bits of gr...

1 year ago | 0

| accepted

Answered
Parallel pool never releases used memory leading to instability
txPositions = [linspace(38.9857294, 38.9857294, 10000).', linspace(-76.9442905, -76.9407240, 10000).']; That is 100...

1 year ago | 0

Answered
What is the best kind of MATLAB function to teach beginners?
Anonymous functions have been supported since R12.1 if I recall correctly. Nested functions have been supported since R14. loc...

1 year ago | 1

Answered
Code won't run on Mac due to backslashes
thing = 'filename\tthis\that'; fprintf(thing) Suppose there was code that automatically detected filenames and converted them....

1 year ago | 0

Answered
mono- objective optimization and multiopjective optimisation, I would like to use GA with option but there is a fault that I can't to resolve
You do not have the Optimization Toolbox installed, and you do not have the Global Optimization Toolbox installed. You probab...

1 year ago | 0

Answered
how to show images at a point in a plot?
F2 = fullfile(S1(i).folder, S1(i).name); I{i} = imread(F2); Also you will probably want a pause() in the display loop. Graphic...

1 year ago | 1

Answered
MPU6050 display raw data and fft from the reading get
[accelReadings,timestamp] = readAcceleration(sensor) returns one sample of the acceleration data from the MPU-6050 IMU se...

1 year ago | 0

Answered
writetable/readtable with multi-line headers
writetable() first just the header lines. Then writetable() the data with WriteMode='append' When you readtable() you can speci...

1 year ago | 0

Load more