Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

what is the meaning of code?

Asked by subha on 7 Feb 2014
Latest activity Commented on by subha on 7 Feb 2014

what below line represents?This is the code which is used to load digits which is taken from MNIST dataset.

Load Digit 0 is understandable that it loads digit 0 from the dataset.But what about the next line. what would be D?

load digit0; digitdata = [digitdata; D];

0 Comments

subha

Products

No products are associated with this question.

1 Answer

Answer by Amit on 7 Feb 2014
Accepted answer

If this code runs, D must be a scalar or a matrix in digit0.

digitdata = [digitdata;D]

appends the matrix or vector digitdata and added D to it. Try this:

A = (1:10)';
A = [A;11]

and see what you get. This will clarify this.

1 Comment

subha on 7 Feb 2014

Got it..

Amit

Contact us