i have the problem with mean function
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
i got the problem with mean function, want to generate this formula e(i)=mean(c'*X(:,i))^2 but it doesnt work. what should i add to run the programe? thx
2 commentaires
the cyclist
le 7 Déc 2013
What are the sizes of X, c and e?
size(X)
size(c)
size(e)
What do you mean by "doesn't work"? If you get an error message, please give the full text of the error message?
Wayne King
le 7 Déc 2013
It's important to include the error message or specify what you mean by "doesn't work". Because you don't give us your variables c or X, or tell us what you are trying to do, how can we possibly guess?
Réponses (1)
Roger Stafford
le 7 Déc 2013
0 votes
If the number of rows in c and X are not the same, matlab will complain.
Cette question est clôturée.
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!