Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 7-by-1.

4 views (last 30 days)
KYRIAKI TYCHOLA
KYRIAKI TYCHOLA on 6 Jan 2022
Commented: KYRIAKI TYCHOLA on 6 Jan 2022
Hello i have this problem
for i=1:341
for j=1:685
%y=net(x)
tst=reshape(inp_image(i,j,:),[1,10]);
y(i,j)= net(double(tst'));
end
end

Answers (1)

VBBV
VBBV on 6 Jan 2022
y(i,j,:)= net(double(tst'));
Since the resulting matrix tst is transposed, you need this

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by