Answered
How can I use some downloaded function?
Where on the MathWorks website did you download the files? If you downloaded them from the File Exchange, I recommend using the ...

10 days ago | 1

Answered
Advice needed with the dateshift function
N = datetime('today') W = dateshift(N, 'dayofweek', 'Wednesday') S = dateshift(N, 'dayofweek', 'Sunday') answer = min(W, S)

10 days ago | 0

Answered
How can I create a Graph with specific coordinates?
When you call plot on your graph you can specify the X, Y, and Z coordinates of the nodes. See the "Custom Graph Node Coordinate...

10 days ago | 0

Answered
findpeak for every column of a matrix
Consider using islocalmax with the dim input argument.

10 days ago | 0

Answered
Why is it the answer from MATLAB is different from the other solving software? Where did I go wrong?
Don't name your variable cond. That already has a meaning in MATLAB. When I used cond1 in the dsolve call rather than cond I re...

10 days ago | 1

Answered
"Function MEMORY is not available on this platform."
As stated in the Limitations section on the documentation page for the memory function, this function is only supported on Micro...

11 days ago | 0

| accepted

Answered
New install: Undefined function 'isstring' for input arguments of type 'char'.
I think you have a fileparts.m that you downloaded or wrote on your path ahead of the one included in MATLAB. When I opened rele...

13 days ago | 0

| accepted

Answered
How can I get only the coefficients that are multiplied by the powers of x? Example: 5x^2 + 9x + 12y + 3z >>> [5, 9]
syms x y z F = 5*x^2+9*x+5*y+3*z [C, T] = coeffs(F, x) C(logical(T ~= 1)) The logical call in the last line may look redunda...

13 days ago | 0

Answered
what is the process of getting campus wide license?
Go to the end of this page. Click the Get Started button and fill in the information requested by the form on that page. Alterna...

13 days ago | 0

Answered
Output truncated. Text exceeds maximum line length of 25,000 characters for Command Window display.
Since I'm guessing you don't really want to read through pages and pages of the result of that command, suppress the display by ...

13 days ago | 0

Answered
too many input arguments in my code!
For your first question, let's split out the innermost function call on that line of code. xr = complex(zeros(fix(waveform.Samp...

14 days ago | 0

Answered
Convert cell array datetime format to double array in HH:MM:SS format
Do you want the numbers as a double array (and if so, what does that double array represent? Seconds since a specific time? Seco...

14 days ago | 0

Answered
R2020a Activation Client for Windows
See this Answers post. If following the steps in that post doesn't resolve the problem, please contact Technical Support using t...

14 days ago | 0

Answered
Colormap editor window size is huge and cannot be resized bug
If you can reproduce this behavior, please contact Technical Support using the telephone icon in the upper-right corner of this ...

14 days ago | 0

Answered
Unable to retrieve the product
Please send the full and exact text of the error message to Technical Support using the telephone icon in the upper-right corner...

14 days ago | 0

Answered
ode45 problems -- not getting expected solution
K = 3*G*mE/R^5; It's been a while since I've studied any physics, but this looks odd to me. RE = 6378.137e3 ; ...

15 days ago | 0

| accepted

Answered
addpoints error "Value must be a handle"
Guard your addpoints call with a check to make sure the animatedline handle still isvalid. L = animatedline; axis([0 360 -1 1]...

15 days ago | 0

| accepted

Answered
How Can I Solve NaN Output Problem
As Roger Jestes stated, if any element of P is exactly 0, you compute 0*(-log(0)) which is 0*inf which results in a NaN. This is...

15 days ago | 0

Answered
"Warning: Name is nonexistent or not a directory"
See this Answers post about the warning.

15 days ago | 0

| accepted

Answered
encrypt an Matlab application standalone ?
From the documentation for MATLAB Compiler: "All MATLAB files in the deployable archive are encrypted using the Advanced Encrypt...

15 days ago | 0

Answered
subclass properties to superclass
As written you don't have a class hierarchy. You have four completely independent classes. If you want one of your classes to be...

15 days ago | 0

Answered
Predict function doesn't work in standalone Matlab application
My suspicion is that you're bringing the TreeBagger object into your application by calling load on a MAT-file containing the ob...

16 days ago | 0

| accepted

Answered
How can I concatenate a "datetime" column to a matrix of numbers?
You cannot concatenate together data of types datetime and double without converting the datetime array to double or the double ...

16 days ago | 0

| accepted

Answered
Plotting an array of dates on the x-axis
Use datetime. x = {'31-May-2019 11:37:29' '31-May-2019 11:45:25' '22-Jul-2019 18:05:55' '22-Jul-2019 18:06:31' '24-Jul-2019...

16 days ago | 0

Answered
Generate the same result using random number generator
If you think calling rng inside the loop somehow makes the numbers "more random", it doesn't as stated in the Note on this docum...

16 days ago | 0

Answered
what is the source code of awgn function?
The awgn function is implemented as a MATLAB function file in Communications Toolbox. If you have this toolbox installed, you ca...

16 days ago | 0

| accepted

Answered
Why Global Optimization toolbox is codenamed "gads"?
When the toolbox was first introduced it was called the Genetic Algorithm and Direct Search Toolbox. It was renamed in release R...

17 days ago | 1

| accepted

Answered
Generation of random numbers in batches
The way to do what you're asking is to record the state of the random number generator. You can't really "work backwards". >> r...

17 days ago | 1

Answered
Plot 2D-histogram for X and Y
In addition to histogram2 which Image Analyst suggested, take a look at the heatmap function. I think showing a heatmap of the d...

17 days ago | 1

Load more