フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can anyone help in this error Error: The expression to the left of the equals sign is not a valid target for an assignment.

3 ビュー (過去 30 日間)
PUPPALA RAJENDHAR 17PHD0038
PUPPALA RAJENDHAR 17PHD0038 2019 年 8 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Ycomfort=str2func(strcat('@(x,T_set_r,T_room_m,T_room_mm,DT_m,DT_L,DT_U,T_room,Gt,dc,Q_HVAC,N_slot,T_set_w,dT_L,dT_U,Tw_m,Tw_mm,f_t,G,Bt,Rt,dT_m,T_w,T_env,T_n,Q_CHPU)',Fcomfort));
Error: The expression to the left of the equals sign is not a valid target for an assignment.

回答 (1 件)

Bjorn Gustavsson
Bjorn Gustavsson 2019 年 8 月 26 日
It looks like you should first check that the string generated by your strcat function call. To me it look like you generate an OK string to pass to str2fun without "Fcomfort". Now if Fcomfort is a string something like '*12' it might still be OK, but I'd guess that's your problem.
HTH

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by