Community Profile

photo

Ethan Sehrt


9 total contributions since 2016

Ethan Sehrt's Badges

  • Thankful Level 1

View details...

Contributions in
View by

Question


what is the difference between axis normal, axis square, axis equal, and axis tight?
what is the difference between axis normal, axis square, axis equal, and axis tight?

4 years ago | 1 answer | 0

1

answer

Question


How do you print data from the command window without a script? Do I need a script to print that information?
I'm trying to print an 'fprint' display in the command window, but whenever I publish it, the script is the only thing being pri...

4 years ago | 0 answers | 0

0

answers

Question


i'm trying to create an if loop so that I can run my program starting with x=1 and increasing by 1 to x =3.
The conditions are as follows: if x=2, f=Inf if x=>2, f=NaN otherwise run the function, f=log(5/2-x) x2 = 0; ...

4 years ago | 1 answer | 0

1

answer

Question


How do I compute the geometrical mean given the data: 92.3, 93.2, 91.9, 93.5, 92.7, 93.1, 93.8, 92.4
D5=[92.3 93.2 91.9 93.5 92.7 93.1 93.8 92.4]; n=length(D5); geometric_mean=0 for q=1:n; z=D5(q); geomet...

4 years ago | 1 answer | 0

1

answer

Question


How do I define a variable without assigning it a value?
I just want to define a variable, f without assigning any values to it so I can use it in an equation.

4 years ago | 4 answers | 2

4

answers

Question


How to produce an 'if else' loop with an x starting at 1 and increasing to 3 by 1 at each end of the loop
x = [1:1:3]; if x == 2; f2 = inf elseif x > 2; f2 = NaN else f2 = log(5/2-x) end I'm trying to inp...

4 years ago | 1 answer | 0

1

answer

Question


What did I do wrong with my code to get this "^" error?
I input an equation as y=((x^2)*sin(x))/exp(x) and defined x as x=logspace(0,6,7); in the script. When I run it, i get a message...

4 years ago | 1 answer | 0

1

answer