Need help with creating a vertical table using MATLAB

7 ビュー (過去 30 日間)
Vincent Shelby
Vincent Shelby 2018 年 2 月 10 日
コメント済み: Vincent Shelby 2018 年 2 月 10 日
Problem 6: Use MATLAB to create a script file and publish a pdf file for the problem: A pressure transducer outputs a current, I in mA for an input pressure, p measured in psi. The output of the transducer is given by:
I = 17^((p-p_(0)) )+3
For
p = 13.8 to 14.8 psi at intervals of 0.1
p0 = 13.8 psi
Create a vertical table output displaying in the first column the pressure and the second column the current.
Display results in short format. Submit the published pdf file. Hint: use a [nx2] matrix to create the table.
This is as far as I got:
p = [13.8:0.1:14.8]; % Assign values to p
I = 17.^(p-13.8) + 3
The problem states to use a vertical table output (which I am not familiar with) and the hint says to use a [nx2] matrix to create the table

採用された回答

Walter Roberson
Walter Roberson 2018 年 2 月 10 日
  1 件のコメント
Vincent Shelby
Vincent Shelby 2018 年 2 月 10 日
Hi Walter,
That worked perfect! So simple. Thank you very much :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by