matlab 新手提问A = 0.5000 0.2500 0.1250 0.1250>> H1=-sum(A.*log2(A)) H1=-sum(A.*log2(A))? |Error:The expression to the left of the equals sign is not a valid target for an assignment.>>
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/29 02:37:34
matlab 新手提问A = 0.5000 0.2500 0.1250 0.1250>> H1=-sum(A.*log2(A)) H1=-sum(A.*log2(A))? |Error:The expression to the left of the equals sign is not a valid target for an assignment.>>
matlab 新手提问
A = 0.5000 0.2500 0.1250 0.1250>> H1=-sum(A.*log2(A)) H1=-sum(A.*log2(A))? |Error:The expression to the left of the equals sign is not a valid target for an assignment.>>
matlab 新手提问A = 0.5000 0.2500 0.1250 0.1250>> H1=-sum(A.*log2(A)) H1=-sum(A.*log2(A))? |Error:The expression to the left of the equals sign is not a valid target for an assignment.>>
>> A =[0.5000 0.2500 0.1250 0.1250];
>> H1=-sum(A.*log(A)/log(2)) % matlab里只能识别log (就是ln)
H1 =
1.7500
>>