| Thread Closed |
Matlab input function |
Share Thread | Thread Tools |
| Aug28-08, 10:53 PM | #1 |
|
|
Matlab input function
Hi all,
Can someone please help me with my matlab code. I am trying to get the program to quite if the user tries to input a non-numeric value, and will display an error message. I have got it to work useing the matlab input('promt','s') command, but i dont want to use this command because a user cant enter 5/100 etc. Here is my code. Code:
j = input('number?:')
if isnan(j)==1
disp('Input must be a number, Function will terminate')
return
end
Thank You Regards Elbarto |
| PhysOrg.com |
science news on PhysOrg.com >> Hong Kong launches first electric taxis >> Morocco to harness the wind in energy hunt >> Galaxy's Ring of Fire |
| Thread Closed |
| Thread Tools | |
Similar Threads for: Matlab input function
|
||||
| Thread | Forum | Replies | ||
| How To Implement This Function With 2 Input Nand.. | Engineering, Comp Sci, & Technology Homework | 2 | ||
| Does a function exist (prefferably in matlab) that finds a function in noise | Math & Science Software | 4 | ||
| Matlab function | Math & Science Software | 2 | ||
| Matlab function HW help please | Math & Science Software | 1 | ||
| how to obtain 4 input or gate using 2 input gates? | Introductory Physics Homework | 3 | ||