필터 지우기
필터 지우기

How to see content of a cell array for using as input to a call?

조회 수: 1 (최근 30일)
Steinar Bråten
Steinar Bråten 2018년 3월 19일
댓글: Steinar Bråten 2018년 3월 20일
I want to read a cell-array, to decide input to a 'input-call'. But the file window opens, but not showing the content before input call ends! Which means I can't see what I shall use as input argument. 'pause' not working. My code jumps over the 'showing of content', waits for 'input', and show the content afterwards. Which are a bit to late then! Please help!
  댓글 수: 6
Guillaume
Guillaume 2018년 3월 20일
편집: Guillaume 2018년 3월 20일
My understanding is that Steinar wants to be able to see the content of the cell array raw (returned by xlsread) before his code proceeds to ask him (with input) which row/column of that cell array to use. Steinar is using openvar to display the content of that variable, but the variable editor only opens once his code has finished running.
edit: more precisely, I've just tested and the variable editor does open as soon as openvar is called but the content of the variable is only displayed once the script completes. Instead a blank editor is shown when the code reaches the input line. Inserting a drawnow does not resolve the issue (R2017b).
@Steinar, you may need to contact Mathworks directly for help with this.
Steinar Bråten
Steinar Bråten 2018년 3월 20일
Thank you Guillaume. You clarified my problem exactly.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by