I tried: % creates a function called 'measuredata' function measuredata(nameoffile) load(nameoffile) end. but if I type in the command window, and want to load e.g. measurement102.mat: >> measuredata('measurement102') I get no warning but nothing is being loaded to the workspace.
The ISNUMBER function is a quick, easy way to check if a cell contains a number. Our example used the IF function to illustrate how ISNUMBER can be used. If you haven't used IF in a formula before, you can read our lesson on the IF function here.
What we really need is way to make our spreadsheet do this automatically. While you might never have used it before, the IF function can simplify these kinds of problems. The IF function can look at a value in a cell to see if it meets a basic condition (in our example, if the value is greater than or equal to 50).