Answered
problem in command window : "Subscript indices must either be real positive integers or logicals"
There's no such thing as element 0 of an array in MATLAB. The first element of an array is element 1. Therefore line 4 of your f...

5 years ago | 1

| accepted

Answered
How to add String values to an array of varying size?
A number of your variables are undefined, but I would consider one of two approaches. This approach, where recipe is a cell arra...

5 years ago | 0

Answered
How to adjust x-axis in a plot?
Since you're working with map data, you may want to explore the map axes that is part of Mapping Toolbox if this toolbox is avai...

5 years ago | 1

Answered
Shrinkwrap on convex hull to enclose region in μ-CT data
It sounds like you might be looking for an alphaShape.

5 years ago | 1

Answered
Plotting nodes and edges on a graph
One way is to make a graph or digraph object and plot it.

5 years ago | 0

Answered
Good book on linear algebra using MATLAB?
How about Cleve Moler's Numerical Computing with MATLAB which has an electronic edition available on the MathWorks website?

5 years ago | 0

Answered
Can someone please explain what I am doing wrong? A bit Urgent!
The function whose handle you pass into ode45 must return a double or single array. It may use sym variables internally but it c...

5 years ago | 0

Answered
How can one write a condition datetime is not NaT?
Use isnat. T = datetime('today') isnat(T)

5 years ago | 0

| accepted

Answered
changing values of RHS with each time step in ODE
Use the "ODE with Time-Dependent Terms" example on the documentation page for the ode45 function as a model. The f and g variabl...

5 years ago | 0

Answered
How to find out source node and target node of each component of a directed signed graph?
I want to find number of source node, target node( having zero out degree) What guarantee do you have that those types of node...

5 years ago | 0

Answered
Why my Matlab starts with a bunch of warnings and errors?
Work through the steps on this documentation page to correct your MATLAB path.

5 years ago | 0

| accepted

Answered
Chinese Language Support?
See this section of the documentation for Text Analytics Toolbox. We do not comment on future plans. If you want MathWorks to c...

5 years ago | 0

| accepted

Answered
Namespace management for packages+sub-packages
Quack.m is in the same +Quacking package as quackBehavior.m; why does it need to know the full package name? Let's say you had ...

5 years ago | 0

Answered
Matlab versions supported on Windows 11?
The platform road map does not list Windows 11.

5 years ago | 0

Answered
Network named license , inquiry
For an official answer to licensing questions please contact Customer Service using the Contact Support link on the Support sect...

5 years ago | 0

Answered
How can I change the interval on the y-axis?
You can use the yticks and yticklabels functions to control the locations of the ticks and the labels used for those ticks. x =...

5 years ago | 0

Answered
Hwo to normalize a Matrix ?
Take a look at the normalize function.

5 years ago | 0

Answered
Help using a class method as an objective function for fmincon does not work
func = @(x)objectiveFunction(obj, x) x0 = [1,1,1]; [x,fval,exitflag,output] = fmincon(@func,x0,A,b,Aeq,beq,[],[],nonlcon,optio...

5 years ago | 1

| accepted

Answered
How to access Matlab projects by " View Matlab commad " ?
Are you using release R2021a or later? The Release Notes indicate this example is new in that release. If you are using release...

5 years ago | 0

| accepted

Answered
Maximum Lifetime of old Matlab Versions & Limitations of availability due to licenses
For an official answer to the questions you've asked please contact your sales representative or Technical Support using the Con...

5 years ago | 0

Answered
how to combine 8-bit binary to form a 16-bit binary
Take a look at the typecast and swapbytes functions. format hex x = uint8([192 168]) y = typecast(x, 'uint16') z = swapbytes...

5 years ago | 0

Answered
Is there any tool available in MATLAB to make project repository and to trace changes in the developed simulink models/matlab coding?
See this section in the documentation for MATLAB and this section in the documentation for Simulink.

5 years ago | 0

Answered
toolbox dependency on other toolboxes
Almost all products depend on MATLAB. This page list product requirements for the latest release. Sometimes products recommend h...

5 years ago | 0

Answered
Convert final grade letter into categorical array.
I would make a vector of grade numbers then use discretize to create a categorical array from that vector of grade numbers. See ...

5 years ago | 0

Answered
Animated data-tip or xline?
Rather than deleting and recreating the line, just update its properties. x = 0:360; y = sind(x); plot(x, y); h = xline(x(1)...

5 years ago | 0

| accepted

Answered
How to make this function in Matlab
See the integral function.

5 years ago | 0

Answered
how to call odefunction from classdef
With the way you've written this at least one of the inputs to ode_function must be a plactice object. ode45 won't call your fun...

5 years ago | 0

| accepted

Answered
how to set up a function involving integrals integral bounds
The integral function is for numeric integration. The int function is for symbolic integration.

5 years ago | 0

| accepted

Answered
improving the creation of subpolygons
Divide visually or computationally? big = polyshape([0 10 10 0 0], [0 0 10 10 0]); p = repmat(big, 5, 5); % Preallocate edges...

5 years ago | 0

Answered
download the text of license agreement
If you have MATLAB installed, see this Answer. If you don't, when you download the installer one of the files that is downloade...

5 years ago | 0

Load more