Community Profile

photo

Left Terry


Last seen: ungefär 2 år ago Active since 2021

Statistics

  • Thankful Level 3
  • Thankful Level 2

View badges

Content Feed

View by

Question


Exclusion of inappropriate inputs in a function
In the function below the user must enter only numbers. How can I show a screen message if the user enters letters or other unwa...

ungefär 2 år ago | 1 answer | 0

1

answer

Question


FEM grid generation with inclined sides
Hello. The following code works properly only for x_i = 0, y_i = 0, theta_x = 0 and theta_y = 0. For any other values of these f...

ungefär 2 år ago | 1 answer | 0

1

answer

Question


Plotting section works for one case and not for the other similar case
Any idea why the plotting section of the code is working for the whole "Type == 1" case and not for the whole "Type == 2" case? ...

mer än 2 år ago | 1 answer | 0

1

answer

Question


Character exclusion using ischar() in script.
Any idea how to exclude characters from the inputs using ischar() ? Every try I made has failed. I want to show user a message w...

mer än 2 år ago | 1 answer | 0

1

answer

Question


Pyth. theorem script. Complex numbers exclusion. For the Type==1 when real part is positive the exclusion does not work. Any ideas why? Any idea also for characters exclusion?
clc, clear all Type = input("Give 1 for Hypotenuse or 2 for Vertical : "); % Asking user for Hypotenuse or Vertical if Type ==...

mer än 2 år ago | 1 answer | 0

1

answer

Question


Why do I get ans = logical 1 or 0 in the command window for the following script?
%Pythagorean Theorem clc, clear all, disp('Pythagorean Theorem Formula c = sqrt(a^2+b^2)') a=input('Enter length a: a = '); b...

mer än 2 år ago | 1 answer | 1

1

answer