필터 지우기
필터 지우기

How to Use imported Workspace Data in MATLAB script

조회 수: 6 (최근 30일)
GettinStarted
GettinStarted 2020년 9월 11일
답변: Cris LaPierre 2020년 9월 11일
Hello,
I have imported from Excel 4 Matrix coeffients (TA_11, TA_12, TA_21, TA_22 all complex doubles) which exist in the workspace, but are not defined as variables or functions in the script where I want to use them.
Now I want to define a Matrix (2x2) called TA = [TA_11 TA_12; TA_21 TA_22], in order to calculate with this Matrix, i.e. multiplication with other matrices.
This is the error message:
Unrecognized function or variable 'TA_11'.
Error in Script (line 66)
TA = [TA_11 TA_12; TA_21 TA_22];
What is to do here?
Thank you very much.
  댓글 수: 1
Fangjun Jiang
Fangjun Jiang 2020년 9월 11일
In Command Window, what do you see when you run "whos" or "workspace"?

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

채택된 답변

Cris LaPierre
Cris LaPierre 2020년 9월 11일
You need to refer to them using their variable name. This is the name used in the Workspace. It was set (intentionally or not) when you imported the data.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by