Answered
Create a plot with sample on the x-axis and mass1 on the y-axis.
sample = linspace(0,10); mass1 = exp(-sample); plot(sample, mass1) xlabel sample ylabel mass1

1 year ago | 0

Answered
Dimensioning a field within a structure array for reading data
Your loop code has a problem when you reach end of file. In such a case, fread() returns empty, and string(empty) returns a 0 x ...

1 year ago | 0

Answered
Using parfor loop with fetchNext
For all variables output from parfor, the indices must be a mix of constants and expressions involving constants defined simply ...

1 year ago | 0

Answered
How to change my MATLAB student license to an academic license?
Unfortunately, there is no way to upgrade a Student license to an Academic license. Academic licenses need to be purchased with...

1 year ago | 0

Answered
How to avoid inf/inf numerically for hyperbolic functions
Unless I have made a mistake, your expression simplifies a lot. syms gamma__l(n) h f d part1a = gamma__l(n)*cosh(gamma__l(n)*h...

1 year ago | 0

Answered
I want to transfer my Matlab software to the new computer.
If you have a Student or Home license or Dedicated Host license, then the easiest way is to Deactivate the license on the existi...

1 year ago | 1

Answered
how to make 3D image from x(50x1double),y(100x1double),z (80x1double), intensity(50x100x80)
The basic 3D volume viewer is volshow or the application VolumeViewer https://www.mathworks.com/help/images/ref/volumeviewer-app...

1 year ago | 0

Answered
Inquiry on Time Complexity of cumsum
Looks pretty linear to me. format long g A = rand(1e6,1); times = zeros(10,1); for K = 1 : 10 subset = A(1:K*1e5); ...

1 year ago | 1

Answered
Effect of rng on Genetic Algorithm
There is no general way using ga() to ensure repeatability and convergence to the global optimum. With some particular forms o...

1 year ago | 0

| accepted

Answered
Linking buttons in a matlab gui
Generally speaking, you would create a uibuttongroup and put uiradiobutton inside of it. https://www.mathworks.com/help/matlab/...

1 year ago | 0

Answered
Command line help fails, reports "Error using append Too many input arguments"
You have a third-party append.m that is interfering with the Mathworks append() which -all append I predict that something els...

1 year ago | 2

| accepted

Answered
cannot search for index of multiple elements in a larger array
You do not promise that there will be exactly one match for each element of i, so you need to do something like A = [ 1027 ...

1 year ago | 1

| accepted

Answered
Import function no longer supported. Am I using the DDL libraries correctly?
The R2023b Release notes say, Malformed and reserved import arguments issue warning Behavior change Previously, the impor...

1 year ago | 0

Answered
Why do I get an error downloading documentation for an offline computer?
This is a known issue. I'm surprised they have not fixed it yet. https://www.mathworks.com/matlabcentral/answers/2177941-why-a...

1 year ago | 0

Answered
Why is my code returning the error "Index in position 1 exceeds array bounds" when calling adjacent()?
if adjacent(pCubes(1,:,:,:),a,b,c) % error here You are passing in a 1 x something x something by s...

1 year ago | 0

| accepted

Answered
Using RTX 5090 for GPU computing in forward compatibility
@Joss Knight who is Mathworks Staff with the Parallel Computing Toolbox, recently wrote https://www.mathworks.com/matlabcentral/...

1 year ago | 1

| accepted

Answered
Is there a good reason for choosing assert() over an if condition with an error?
My personal style is that assert() is mostly for conditions that should always be true contextually, with the assert() being dou...

1 year ago | 0

Answered
Which window is "on top"?
get(groot,'CurrentFigure') However, I do not know at the moment whether CurrentFigure includes figures whose handle visibility ...

1 year ago | 0

Answered
How to change the menu appearance in a gui created by GUIDE
You can make limited changes by coding (for example) set(groot, 'DefaultTextFontSize', 14)

1 year ago | 0

Answered
Please 🙏 help me to find the exact solution of ODE
syms C1 C2 y(x) dy = diff(y); d2y = diff(dy); eqn = y^2 * d2y + y*dy^2 - dy^2 + C1*y^4 + C2*y^3 == 0 dsolve(eqn)

1 year ago | 0

Answered
Difference between integral and cumtrapz.
integral() takes a function handle and does an adaptive quadrature numeric integration of the given function. The adaptive quadr...

1 year ago | 1

Answered
Is my CNN Correct
There are definitely more than 10 possible layers at any point. Your system has 12 layers. Therefore there are over 10^12 poss...

1 year ago | 0

Answered
why do I receiving MATLAB licensing error 5013
See https://www.mathworks.com/matlabcentral/answers/1815375-why-do-i-receive-error-5013-unable-to-access-services-required-to-ru...

1 year ago | 0

| accepted

Answered
I want to clip a contour output to the interior of a closed polygon
Create a polyshape() with the boundaries of the enclosing polygon. Use isinterior to test the x, y coordinate pairs implied by n...

1 year ago | 1

Answered
Nvidia GPU GeForce 5060-5090
Are the Nvidia GeForce RTX 5060, 5070, 5080 and 5090 compatibile with Matlab R2025a? NO. Given that R2025a was realeased six m...

1 year ago | 2

| accepted

Answered
2-D plots don't render correctly in Figures window
The partial line is because of a known bug, https://www.mathworks.com/matlabcentral/answers/2177698-strange-behaviour-of-plot#an...

1 year ago | 0

| accepted

Answered
Hold off in uitab does not seem to work?
ax = axes('parent',ft); Each time you execute that statment, you generate a new axes to plot in. You instead need some...

1 year ago | 0

Answered
Help with Inequalities In Switch Statement
To use inequalities in case statements, you need to provide a logical value to the switch statement. For example, switch true ...

1 year ago | 0

Answered
I am Currently using MALTAB using My college Email id...So whats the duration of this free software?
When you use MATLAB using your college email address, you are using a copy of MATLAB that has been licensed to the college thro...

1 year ago | 0

Answered
How do i fix the input to the 16 qam model not being bits
Use https://www.mathworks.com/help/simulink/slref/integertobitconverter.html on the output of the buffer.

1 year ago | 0

Load more