Error on official example "Classify Videos Using Deep Learning"
Which release are you using? The Release Notes for the most recent release (release R2019b as I type this) states that "AverageI...

12 days ago | 0

matlab ppval understanding of centering/displacement in breaks
The documentation page for ppval says that the pp input is a struct array created by a function like mkpp. If we look at the mkp...

12 days ago | 0

how do i get my license number and activation key
Your college's IT department (whoever maintains your college's software licenses) should have sent you the information you need ...

13 days ago | 0

I have matrix with "L" row and "N" column(L<N). I want to convert this matrix to N*N matrix. how can I do it in matlab?
There are many ways to expand a matrix. Let's take one small example. A = [1 2 3; 4 5 6]; A is 2-by-3. If I wanted to make thi...

14 days ago | 0

solve ode with parametrizing function
The anonymous function you pass into ode45 accepts t and x from ode45 but does not pass them into your for_kine function. @(t,x...

15 days ago | 0

Solving non-linear equations in MATLAB
You could try changing your initial guess. But for this set of equations, since the elements in x always appear inside a call to...

15 days ago | 1

Find and insert missing dates in a table with irregular timestamp
retime should work. Let's make a sample timetable with a few pieces of data. dt = datetime(2017, [5; 5; 5; 6; 6; 6; 6], [29; 30...

15 days ago | 0

| accepted

How can I convert the cosine function I get into a circle?
Instead of a plot I think you want a polarplot (assuming you're using release R2016a or later.)

15 days ago | 0

| accepted

ODE error and vector error
As the error message states, your initial condition vector X0=[C0;S0;s1;s2]; tells ode45 that you're trying to solve a system ...

15 days ago | 0

Variables with sequential names (with function handle @)
The anonymous function "remembers" the value n had when the anonymous function was created, so it will do what you want when it ...

15 days ago | 0

Indexing a Variable in an Input Prompt
If you're using a release that supports string you can use the + operator for string. Playerturn = 2; moveNumber = 1; y1 = in...

16 days ago | 0

How to write a function
What's the name of the file in which you saved this function? If the function name and the file name are different, MATLAB knows...

16 days ago | 0

Variable assigns value but wont plot
If you want to add points to your line one by one as your loop iterates you could create an animatedline before entering your fo...

16 days ago | 0

deleted old version of Matlab (R2017b) keeps getting back
Do you have some automated process that restores the Applications folder from a backup like Time Machine? If you're in a corpora...

16 days ago | 0

concatenate column values in a vector
Treat v1 as the coefficients of a polynomial and evaluate that polynomial for x = 10. v1 = [ 1,0,1,0]; v2 = polyval(v1, 10)

17 days ago | 1

errors in training deep learning network from matlab help system examples
Which release of Deep Learning Toolbox or Neural Network Toolbox are you using? How does this example appear (or does it appear...

17 days ago | 0

Why pcbstack layers not aligned?
This might be related to Bug Report 2066356 as Hyma Harish Vallabhapurapu posted, but it could also be related to Bug Report 207...

17 days ago | 0

| accepted

Using bsxfun for non-numeric data
For this specific example, you can now take advantage of implicit expansion and the string type. >> a = {'aa', 'bb', 'cc'}; >>...

17 days ago | 1

What to do if I want make parameters a vector in a ODE23?
There's an example on the ode23s documentation page (open this by typing doc ode23s in the MATLAB Command Window) for how to pas...

17 days ago | 0

Undefined function 'updateSystem' for input arguments of type 'matlab.ui.Figure'.
Your filterPlot function returns the handle to a MATLAB figure. According to its documentation page updateSystem requires its fi...

18 days ago | 0

| accepted

App Designer - unit of "position" property
The documentation states that the Units property is 'pixels'. What's the value shown for the ScreenPixelsPerInch property of the...

18 days ago | 0

matlab graph using excel data
Import the first set of data and generate the figure as you want it to appear. Once you have set up one figure, generate code th...

18 days ago | 0

How can I select y data given a certain x value?
What you're seeing is the first example in the "Avoiding Common Problems with Floating-Point Arithmetic" section on this documen...

18 days ago | 0

Coding vectors in matlab
Nowhere in your code did you define a variable named v, so line 4 of the code you posted should (and will) throw an error. Did y...

19 days ago | 0

| accepted

Match datetime within 3 seconds from two tables of different sizes
Use withtol. Let's use a sample timetable generated using the example from the help: MeasurementTime = datetime({'2015-12-18 08...

19 days ago | 0

Problem using interp1 with a sharp change in the data
Try using ischange to detect these sharp changes in your data and interpolating using only data in the same "piece" of your curv...

19 days ago | 0

2 nearest neighbors of each side of vector
Are there specific operations you want to perform on those neighbors? The moving statistics functions on this documentation page...

20 days ago | 0

Working With Matlab Tables
Use parentheses to extract a smaller table from a larger table or to assign a smaller table into a larger one. Use curly braces...

20 days ago | 0