readvars not a deifned function?

I keep getting the same error with readvars. Anyone know how to fix it?
[system, stiffness, time, mass] = readvars('hw4_q1.xlsx');
Undefined function or variable 'readvars'.
data table
1 10 4 10.9147000000000
2 8 8 11.1058000000000
3 2 1 10.4270000000000
4 5 5 11.3134000000000
5 3 4 11.1324000000000
6 5 2 10.6975000000000
7 9 0 10.9785000000000
8 10 1 11.3469000000000
9 20 3 11.8575000000000
10 11 20 11.9649000000000

1 件のコメント

Daniel M
Daniel M 2019 年 10 月 23 日
What is the output of
which readvars

サインインしてコメントする。

回答 (1 件)

Star Strider
Star Strider 2019 年 10 月 23 日

1 投票

The readvars function was introduced in R2019a. If you are using R2018b or earlier, you will not be able to use it.
The solution is to upgrade to the current version, R2019b.

カテゴリ

質問済み:

2019 年 10 月 23 日

回答済み:

2019 年 10 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by