how can you run this textscan code?

Create an m-file script that uses textscan to extract the impedance values for electrodes 1-96 from the text file “impedances.txt”. Remove all impedances greater than 1000 and then generate a 10-bin histogram plot of these values. Provide the appropriate axes labels and title. Set the x-axis range to 0-1000 and the y-axis range to 0-30. Create a text box that shows the mean and standard deviation of the impedances. Use sprintf to construct the string for this text box with the following format: „Mean impedance = ? +- ? (kOhm)?. Replace the ? characters with the mean and standard deviation values, respectively. Place this box in the center of the figure horizontally and directly above the plotted data. I know we need the impedances.txt file to do this problem. but can anyone so me the code steps to you. I can manage to put the .txt file myself.

2 件のコメント

Jan
Jan 2011 年 2 月 21 日
Is this your homework? Is MATLAB Answers a homework solver?
Walter Roberson
Walter Roberson 2011 年 2 月 21 日
The code steps to follow are pretty much exactly as listed in the question. About the only thing you should need a hint on is that you will be using uicontrol()

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

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 2 月 21 日

1 投票

Other than to refer you to the textscan() documentation, we cannot do much unless you tell us about the format the impedance values are stored in.

カテゴリ

質問済み:

2011 年 2 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by