Answered
draw histogramm of X(i)
Instead of calling hist (whose use is discouraged) use histogram. And I second the cyclist's question for more information abou...

5 years ago | 0

Answered
For loop stops after one step
What makes you believe the loop stops after one step? Were you expecting PhilW to contain the sum of X, Y, and Z for each elemen...

5 years ago | 0

| accepted

Answered
How to pivot a table?
Take a look at the stack function.

5 years ago | 1

| accepted

Answered
how to evaluate integral for given input function ?
You don't have a function, you have a vector of data. Unless you know the form of the function x(u) from the theory underlying y...

5 years ago | 0

Answered
solve(eqn,x) giving wrong answer
You can check the answer. sympref('FloatingPointOutput',true) syms x y eqn = -1.5960e-06*x^2 + 0.0367*x - 2.0468 == y solx =...

5 years ago | 0

Answered
matlab standalone desktop app stuck in syms command
Creation of symbolic expressions using sym or syms is not supported in MATLAB Compiler as stated on this documentation page. Per...

5 years ago | 0

| accepted

Answered
How to zero mean a 3-D array
A = randi(10, [3 3 4]) B = normalize(A, 3, 'center') % "Center data to have mean 0" check = mean(B, 3) % Should all be close t...

5 years ago | 0

Answered
Peculiar behavior in compiled standalone
Is the function in the standalone application that throws an error operating on one or more of the input arguments with which th...

5 years ago | 0

Answered
Split matrix in 15 submatrices
Don't try to make variables with numbers in the name like A1, A2, ... A15. Use mat2cell instead.

5 years ago | 0

| accepted

Answered
How to "dbup" to ORIGINAL error after try/catch and rethrow?
Set a breakpoint inside the catch section of the try / catch block. If you only want to enter debug mode when certain errors are...

5 years ago | 0

Answered
How to get only real output from (-3)^(1/3)
You can use the nthroot function. y = nthroot(-3, 3)

5 years ago | 2

Answered
How does reshape function work? and also how to use sum(A,dim) in the code?
For reshape, conceptually you can think of it as taking a long string of elements: x = 1:16; and putting them into the element...

5 years ago | 1

Answered
All my commands end up in workspace
Your last three lines create variables that shadow the title, xlabel, and ylabel functions rather than calling those funcions. I...

5 years ago | 0

| accepted

Answered
Operands to the logical and (&&) and or (||) operators must be convertible to logical scalar values. What is my mistake ?
Use discretize. % If sales are in the range [0, 500000) the bonus rate is 0 % If sales are in the range [500000, 1000000) the ...

5 years ago | 0

Answered
Why the helperSegmentEgoFromLidarData function is not working?
That function is a helper function created for the example that you linked in your comment. It is not a regular function in the ...

5 years ago | 0

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

Load more