Statistics
6 Questions
0 Answers
RANK
248,768
of 301,433
REPUTATION
0
CONTRIBUTIONS
6 Questions
0 Answers
ANSWER ACCEPTANCE
66.67%
VOTES RECEIVED
0
RANK
of 21,272
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 174,520
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
How can I print the value of a menu function? That is to say as follows: As I choose any option it saves the number,I want it to display the chosen option i.e option-1 draws bar. I am restricted to this function only
EinUnits=menu('Choose','bar','psi','kPa','torr','kgf/cm2','atm')
8 years ago | 1 answer | 0
1
answerQuestion
How to obtain this format using either disp or fprintf??? Any basic instruction?
F1 1.00 F2 2.30 F3 5.79 Etc......
8 years ago | 1 answer | 0
1
answerQuestion
My error is the ever popular ''Error using fprintf Invalid file identifier. Use fopen to generate a valid file identifier. Error in Doc (line 7) fprintf(fid,'\t Question for CPA \n');'' What is wrong??
clear all clc r=1.329;A=pi/4*1.5^2;V=[2:0.5:10]; P=0.5*r*A*V.^3; A=[V;P]; fid=fopen('prac.docx','w'); fprintf(fid,'\...
8 years ago | 1 answer | 0
1
answerQuestion
Calculate no,of steps taken to reach B=10. How is the value n(a) operating?(The program is correct but I can't understand how n is being incorporated?)
clear all clc for a=1:100 x=0;n(a)=0; while abs(x)<10 x=x+randn(1,1); n(a)=n...
8 years ago | 0 answers | 0
0
answersQuestion
Run a program to display the least possible integer divisible by 11 and its square root greater than 132?
clear all clc x=1; while x if rem(x,11)==0 && x^2>132 disp(x) end end What is wrong with this code...
8 years ago | 1 answer | 0
1
answerQuestion
Predict the value of pi through the following program and compare with real pi using 2*[(2*n)^2/((2*n)^2-1)]
I did this and the answer displayed is Actual Pi= clear all clc format long m=[100 100000 10000000]; for...
8 years ago | 1 answer | 0
