Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
\[ \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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started