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 Kommentare

Jan
Jan am 21 Feb. 2011
Is this your homework? Is MATLAB Answers a homework solver?
Walter Roberson
Walter Roberson am 21 Feb. 2011
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()

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 21 Feb. 2011

1 Stimme

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.

Gefragt:

am 21 Feb. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by