| Thread Closed |
Matlab find() function in script |
Share Thread | Thread Tools |
| Sep20-10, 05:29 PM | #1 |
|
|
Matlab find() function in script
SOLVED.
Hi All! Brief version: I would like to use statement starting with [ in Matlab script. Is it possible, if yes, how? Longer version: I'm writing code in matlab. I need to find matrix indices, for which the statement M==10 is true. (I found find() function, which is perfect for the task). [r,c]=find[M==10]; It works perfectly within the command window, but not in my script. I get an error message, stating: parse error at '[' ... not valid matlab script Can you help, or I must write an algorithm for finding indices? :S Thanks in advance! |
| Sep21-10, 05:47 AM | #2 |
|
|
Use (), not [] for the find argument
|
| Sep21-10, 08:29 AM | #3 |
|
|
Thank you! :) That was the problem. As you can see I'm just started coding in matlab...
|
| Thread Closed |
| Tags |
| '[', error, find(), matlab, script |
| Thread Tools | |
Similar Threads for: Matlab find() function in script
|
||||
| Thread | Forum | Replies | ||
| math with action script (Joukowski's + action script = HOW!!?!?!?) | Programming & Comp Sci | 1 | ||
| MATLAB find function 4D array | Programming & Comp Sci | 3 | ||
| Matlab- Second moment of Area(I) Script Help! | Programming & Comp Sci | 2 | ||
| Does a function exist (prefferably in matlab) that finds a function in noise | Math & Science Software | 4 | ||
| How do I find the Critical points of a multi-variable function using MATlab? | Math & Science Software | 3 | ||