Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

\[ \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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 5.0 Databases

Authors: Vidya Vrat Agarwal

2nd Edition

1430242604, 978-1430242604

More Books

Students also viewed these Databases questions