I am working with a 7783x1 matrix, and I am trying to find the max value & its location. But I need to do it in the script and not in the command window. I have the matrix data saved as a FILE.mat in the same folder.
That worked in the command window but How do I use this when my matrix is in another .mat file. Like how do I reference that particular file? Thank you in advance
Its been about 5 years since I have touched matlab but here is a photo of what is happening. In the current folder is "pothole.mat". It was a text file that I imported into matlab and it converted it to a numerical matrix (7781x1) and saved as what is shown.
You did not change the names like I said. Leave the semicolon off line 17 and see what fields it shows in the command window and use that instead of m.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
0 Comments
Sign in to comment.