필터 지우기
필터 지우기

how to write celll array to text file as an error output..? (below, Error_PV_comp is an cell aray). In the below example I am pop uping the error output but I need an error statements as an text file. Which logic and syntax to use,?

조회 수: 2 (최근 30일)
if error_flag_PV_comp && error_flag_PS_comp && error_flag_PL_comp && error_flag_MV_comp && error_flag_MS_comp && error_flag_ML_comp ~= 0
errordlg(Error_PV_comp,'Error in component and sub-component total power losses');
errordlg(Error_PS_comp,'Error in component and sub-component drag power losses');
errordlg(Error_PL_comp,'Error in component and sub-component torque dependent power losses');
errordlg(Error_MV_comp,'Error in component and sub-component total torque losses');
errordlg(Error_MS_comp,'Error in component and sub-component drag torque losses');
errordlg(Error_ML_comp,'Error in component and sub-component torque dependent losses');
else
disp("There are no differences in components and sub-components losses")
end

답변 (1개)

Puru Kathuria
Puru Kathuria 2020년 11월 25일
Try following these steps:
  1. You can print the content/error messages/data on command window
  2. Then use dary command to write that into a text file

카테고리

Help CenterFile Exchange에서 Specialized Power Systems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by