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 个评论

Is this your homework? Is MATLAB Answers a homework solver?
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.

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by