Answered
How to transpose a table of double values without the doubles getting converted to integers?
That tells me your table contains both int64 and double data. When you combine the table values into one array with table2array ...

6 years ago | 0

Answered
Plot function with time step
A slightly different way to create that vector would be to compute integer multiples of the spacing. First I'll make some sample...

6 years ago | 2

Answered
How to dramatically speed-up the function plot
The key information is in the Description section on the plot documentation page. "plot(X,Y) creates a 2-D line plot of the dat...

6 years ago | 1

| accepted

Answered
Does infinite norm function use singular value ?
As stated on the documentation page for the norm function and on Wikipedia, the infinity norm of a matrix is the maximum of its ...

6 years ago | 0

| accepted

Answered
Hello guys i need help
Don't try to call fzero with a function handle to the function containing the fzero call as the input. If you do, the function w...

6 years ago | 0

Answered
The input character is not valid in MATLAB statements or expressions
Have you opened the appcoef function in the Editor previously, even accidentally? If so, open it in the Editor again and see if ...

6 years ago | 0

| accepted

Answered
Return Indices for x Smallest/Largest Values in Array
Use the second output of the mink or maxk functions.

6 years ago | 2

| accepted

Answered
MatlabR19b problem
It's rare that private functions have help text. They cannot be called directly except by functions in the directory containing ...

6 years ago | 0

Answered
Inconsistent handles structure in GUI callback function
My guess is that you specified the callback function that executes as an anonymous function that does not accept the handles str...

6 years ago | 0

| accepted

Answered
not enough input argument error
It seems like you're trying to call a function using the description of a variable from the Workspace window rather than the var...

6 years ago | 0

Answered
Usage of xticks() when plotting a timetable
If your concern about "manually specify[ing] them" is that you don't want to have to type each one, you don't have to type each ...

6 years ago | 0

| accepted

Answered
Using dsp.CumulativeProduct inside a function
Is there a reason you need to call dsp.CumulativeProduct specifically rather than calling the cumprod function included in MATLA...

6 years ago | 0

Answered
Undefined function 'symsum' for input arguments of type 'uint8'
Nowhere in your code do you define any symbolic variables so symsum is not the right tool to use in this situation. Use sum and ...

6 years ago | 0

| accepted

Answered
How can I make my code run faster?
My suspicion is that if you were to profile this code the exist calls would consume the most time. If I understand what you're t...

6 years ago | 0

Answered
hex2dec return error
Since you're using release R2019b you can directly enter hex and binary numbers. >> x = 0x238a x = uint16 9098 See the...

6 years ago | 0

Answered
Issue with gammainc(x,a) for small x and larger a
Depending on what you plan to do with this tiny number, using the 'scaledlower' option for gammainc may help. I computed the ove...

6 years ago | 0

Answered
How to count the number of times I called a function (using the command line)
Since you're doing this as part of an App Designer app, why not store the iteration count in a property of your app? As long as ...

6 years ago | 1

Answered
Sin and Cosine curves are coming out like zigzags
Let's draw sine curves with varying numbers of points. for pts = 1:9 subplot(3, 3, pts) x = linspace(0, 2*pi, 2^pts);...

6 years ago | 0

Answered
Parentheses in code to make code more readable
You might be interested in enabling code folding for your if/else blocks and/or your switch/case blocks in the Editor/Debugger p...

6 years ago | 0

Answered
How to know results
As written your code solves for the roots of the 7th order polynomial whose coefficients are: p = 8 134 53 34 ...

6 years ago | 0

Answered
convert double array to categorical
Consider using discretize. x = rand(10, 1); c = discretize(x, 0:0.25:1, 'categorical'); t = table(x, c)

6 years ago | 1

Answered
Why do I get an error 358 when attempting to activate MATLAB?
See this Answers post.

6 years ago | 0

Answered
Hello, I'd like to define this function. Any help please?
A couple comments: function u1_problem(x) Your function doesn't return any values to its caller. So whatever variables you def...

6 years ago | 1

Answered
View Reshape Function Code
We don't distribute the source code for that built-in function.

6 years ago | 1

Answered
What is problem to make space curve [2*cos(t),2*sin(t),5]?
You want to draw this curve in the section of 3-d space in the plane z = 5? You need to specify one z coordinate for each coordi...

6 years ago | 0

| accepted

Answered
Writing m function to be read by Livescript
If the name of the main function in a function file and the name of the function file itself are different, MATLAB will know the...

6 years ago | 0

Answered
How can the code tell if a single test is running instead of the whole test class?
If you're running this to debug, I assume you actually want the additional information only when the test fails. If so try matla...

6 years ago | 0

Answered
I can't get a license though I have paid
Please check your spam folder to determine if the email from MathWorks with your installation instructions has been caught there...

6 years ago | 0

Answered
What is wrong with my code.I want to connect stars(*)by straight line,but it's printing only points,not line!
You're creating one line per ginput call, plotting one point per line. They're not all the same line object so they're not conne...

6 years ago | 0

Answered
why a variable is remaining unchanged when solving two simultaneous ordinary differential equation using ode45?
Let's look at both terms of the expression you use to define dX(1). dX=[(m*(Ca0-x(1))/rho*V)-k*x(1)*exp(-E/R*x(2)); For the fi...

6 years ago | 2

Load more