Info

This question is closed. Reopen it to edit or answer.

Subscripted assignment dimension mismatch. ()

2 views (last 30 days)
KnowledgeSeeker
KnowledgeSeeker on 2 Jun 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
I am trying to get the probability of each class.and I defined the
prob = zeros(size(classes,2)); number of classes is 10;
prob(:,k) = p(:,model{k}.Label==1); the error occur here. K is from 1 to 10
Hope someone can help
  3 Comments
KnowledgeSeeker
KnowledgeSeeker on 2 Jun 2014
Thank you Star Strider, It has been solved,
prob = zeros(numInstance, Numclasses);
Star Strider
Star Strider on 2 Jun 2014
My pleasure!
I obviously should have posted that as an Answer!?

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!