![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/32685611_1706848965884.jpg)
TheSaint
Followers: 0 Following: 0
Statistik
17 Fragen
0 Antworten
RANG
232.951
of 292.756
REPUTATION
0
BEITRÄGE
17 Fragen
0 Antworten
ANTWORTZUSTIMMUNG
64.71%
ERHALTENE STIMMEN
1
RANG
of 19.936
REPUTATION
N/A
DURCHSCHNITTLICHE BEWERTUNG
0.00
BEITRÄGE
0 Dateien
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANG
of 147.931
BEITRÄGE
0 Probleme
0 Lösungen
PUNKTESTAND
0
ANZAHL DER ABZEICHEN
0
BEITRÄGE
0 Beiträge
BEITRÄGE
0 Öffentlich Kanäle
DURCHSCHNITTLICHE BEWERTUNG
BEITRÄGE
0 Highlights
DURCHSCHNITTLICHE ANZAHL DER LIKES
Feeds
Frage
Need help with restricted areas and warp gates
clc % Prompts user for the desired input method Input = input('Type of input (User or File): ', 's'); if strcmp(Input, 'f...
3 Monate vor | 1 Antwort | 0
1
AntwortFrage
Program not calculating properly
function PokerGame() clc clear RunTotal = 100000; CardsPerHand = 5; NoPair = 0; OnePair = 0; TwoPairs = 0; ThreeofKin...
5 Monate vor | 2 Antworten | 0
2
AntwortenFrage
Table not aligning properly
ThePriceisRightWheel() function ThePriceisRightWheel() clc clear RunTotal = 100000; Contestant1Spins = 5:5:100; SpinN...
5 Monate vor | 1 Antwort | 0
1
AntwortFrage
How to find same values in a randi function
RunTotal = 100000; NoPair = 0; OnePair = 0; TwoPairs = 0; ThreeofKind =0; FullHouse = 0; FourofKind = 0; FiveofKind = ...
5 Monate vor | 2 Antworten | 0
2
AntwortenFrage
Program not printing to a text file properly
read = importdata("testscores.txt"); StudentID = read(:,1); Score = read(:,2); fid = fopen('FinalGrades.txt', 'w'); Fina...
5 Monate vor | 1 Antwort | 0
1
AntwortFrage
Why does this function not work for decimals?
x = input("Please enter the value of x (in radians): "); approximatearctan = 0; n = 0; arctanactual = atan(x); while (...
5 Monate vor | 1 Antwort | 0
1
AntwortFrage
How to call a separate function to a new program
a = input('Enter the value of a: '); b = input('Enter the value of b: '); c = input('Enter the value of c: '); Discrimi...
6 Monate vor | 2 Antworten | 0
2
AntwortenFrage
How to use inputs within a function?
function Discriminant (a) a = input('Enter the value of a: '); b = a*2 fprintf('The value of b is: %i', b) end This...
6 Monate vor | 1 Antwort | 0
1
AntwortFrage
How do I call a function from the command window
myEquation(2) function myEquation (x) a = 0.4361836; b = 0.1201676; c = 0.937298; r = exp(-0.5*(x^2))/(2*pi) ; t...
6 Monate vor | 2 Antworten | 0
2
AntwortenFrage
Why is my function not recognized?
function myEquation (x) a = 0.4361836; b = 0.1201676; c = 0.937298; r = (e^(-0.5*(x^2)))/(2*pi) t = 1/(1+(0.3326*...
6 Monate vor | 1 Antwort | 0
1
AntwortFrage
How to add an input to the end of an fprintf function
units = input('Please enter the units for your rectangular coordinates: ','s'); I have this line of code right here. I would li...
6 Monate vor | 1 Antwort | 0
1
AntwortFrage
How do I use fprintf to print to a text file?
fprintf(' Force(N) \t Spring Constant (N/m) \t Potential Energy (J) \n') fprintf(' %1.0f \t\t %2.0f \t\t\t\t\t %0.2f\n', [F;...
6 Monate vor | 2 Antworten | 0
2
AntwortenFrage
How to reduce \t commands
printf(' %1.0f \t\t %2.0f \t\t\t\t\t %0.2f\n', [F; SC; E]) Here is my current code. It works just fine, but in order for my ta...
6 Monate vor | 2 Antworten | 0
2
AntwortenFrage
Trying to set up a matrix, getting error message
This is my current code, every time I attempt to run it I get an error message that says "Index in position 1 exceeds array boun...
6 Monate vor | 2 Antworten | 0
2
AntwortenFrage
How do I print coordinates in an (x, y, z) form?
r = sqrt((x^2)+(y^2)+(z^2)); lambda = atan(y/x); phi = asin(z/r); fprintf('Our rectangular coordinates converted to cyl...
6 Monate vor | 1 Antwort | 0
1
AntwortFrage
How do I make greek letters appear as symbols and use them as variables?
'\lambda' = arctan(y/x) This is my current code. How do I make lambda appear as a symbol, and then set it as a variable? Thanks...
6 Monate vor | 1 Antwort | 1
1
AntwortFrage
How do I put a variable input inside a char vector?
fprintf('Car number' 'is driving the fastest', x) I have this function, and I want to put an input command such as this in betw...
6 Monate vor | 1 Antwort | 0