Question

How can I do a superscript of 6 for a unit (cm) in matlab using fprintf??...

How can I do a superscript of 6 for a unit (cm) in matlab using fprintf??

Script:

fprintf('Hexagon volume = %.3f %c %.3f %s^{6} \n', hexVol, 177, hexUnc, units ); *^{6} didn't work*

Command window:

Hexagon volume = 9.425 ± 1.571 cm6

Homework Answers

Answer #1

`Hey,

Note: In case of any queries, just comment in box I would be very happy to assist all your queries

It is not possible to display subscripts or superscripts in the command window. The java text control that matlab uses does not support formatting with only a few exceptions. The only formatting supported is underline, bold, and changing the text colour. All of these are done using undocumented features of matlab.

The only possible is in the figures since we can include the TEX command in it.

Kindly revert for any queries

Thanks.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using a .05 significance level, how can I test the claim using the critical value method,...
Using a .05 significance level, how can I test the claim using the critical value method, that the variations of game scores for the Lakers n=41 games s=10 points and Clippers with n=21 games s=13 points are the same?
I know the answer to this is 83, but I have no idea how to do...
I know the answer to this is 83, but I have no idea how to do this question. Can you help give me an explanation why? Thank you! Refer to Table 10-5. If the government wanted to reduce pollution from 16 units to 6 units, which of the following fees per unit of pollution would achieve that goal? Table 10-5 The following table shows the marginal costs for each of four firms (A, B, C, and D) to eliminate units...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads data from a file and performs regression analysis using polyfit and polyval. The function shall have the following features: The input arguments shall include the file name (string), a vector of integers for the degrees of polynomial fits to be determined, and an optional plot type specifier (‘m’ for multiple plots, ‘s’ for a single plot - default). The data files will be text...
Consider the following expression: 7^n-6*n-1 Using induction, prove the expression is divisible by 36. I understand...
Consider the following expression: 7^n-6*n-1 Using induction, prove the expression is divisible by 36. I understand the process of mathematical induction, however I do not understand how the solution showed the result for P_n+1 is divisible by 36? How can we be sure something is divisible by 36? Please explain in great detail.
Please explain how so that I can get it Both problems please and problem 1 only...
Please explain how so that I can get it Both problems please and problem 1 only for part (e). Problem2 only part(c). P1)The expression x = 7.70 cos(2.50πt + π/2) describes the position of an object as a function of time, with x in centimeters and t in seconds. What are the following? (a) frequency 1.25Hz (b) period 0.8 s (c) amplitude 7.70 cm (d) initial phase of the object's motion 1.57 rad (e) position of the particle at t...
You should now explore and document the following: 1. How can I watch a variable changing?...
You should now explore and document the following: 1. How can I watch a variable changing? 2. How can I watch the special function registers (SFR)? What does the program counter do when I step through my program? How does this relate to the program memory? 3. How does my C-code translate into assembly code? Can I simulate assembly commands? 4. Set the simulator to 16MHz (Project Properties -> Simulator) and use the Stopwatch to measure how long it takes...
Using seven different Scrabble blocks with the letters: a,e,o,n,r,s,t written on them: a) How many different...
Using seven different Scrabble blocks with the letters: a,e,o,n,r,s,t written on them: a) How many different seven letter arrangements are possible? b) How many three letter arrangements are possible? c) If I choose three letters, then in how many ways can I do this d) If I select six letters then in how many ways can I do this
How do I work this problem? Annuity payments are assumed to come at the end of...
How do I work this problem? Annuity payments are assumed to come at the end of each payment period (termed an ordinary annuity). However, an exception occurs when the annuity payments come at the beginning of each period (termed an annuity due). What is the future value of a 13-year annuity of $3,000 per period where payments come at the beginning of each period? The interest rate is 11 percent. Use Appendix C for an approximate answer, but calculate your...
How I can solve this? Do one of the following, as appropriate: (a) Find the critical...
How I can solve this? Do one of the following, as appropriate: (a) Find the critical value zα/2, (b) find the critical value tα/2, (c) state that neither the normal nor the t distribution applies. 98%; n = 7; σ = 27; population appears to be normally distributed. zα/2 = 2.05 tα/2 = 1.96 tα/2 = 2.575 zα/2 = 2.33
Can anyone tell me how to solve this what steps do i take.. Which of the...
Can anyone tell me how to solve this what steps do i take.. Which of the following expressions is the correct equilibrium-constant expression for the equilibrium between dinitrogen tetroxide and nitrogen dioxide? 3N2O4(g)  6NO2 (g) [A] [N2O4] 6 /[NO2] 3                  [B] [NO2] 6 /[N2O4] 3   [C] [NO2] 3 /[N2O4] 3                  [D] [N2O4] 3 /[NO2] 3               [E] [NO2] 3 /[N2O4] 6
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT