Question: Need help with MATLAB error [ begin{array}{l} text { load('mnist_train.mat'); } text { load('mnist_test.mat'); } end{array} ] [ begin{array}{l} text { class }=10 ;

Need help with MATLAB error

Need help with MATLAB error \[ \begin{array}{l} \text { load('mnist_train.mat'); } \\

\[ \begin{array}{l} \text { load('mnist_train.mat'); } \\ \text { load('mnist_test.mat'); } \end{array} \] \[ \begin{array}{l} \text { class }=10 ; \% \text { Number of classes (digits 0-9) } \\ \text { B_train = eye(class), labels_train; } \\ \text { B_test }=\text { eye(class), labels_test; } \end{array} \] A_train = reshape(images_train, [], size(images_train, 3)); A_test = reshape(images_test, [], size(images_test, 3)); \[ \begin{array}{l} \text { x_train = linsolve(A_train, B_train }) \text {; } \\ \text { x_test }=\text { linsolve (A_test, B_test }) ; \mid \end{array} \] Error using linselve First and second arguments must be single or double

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!