All_cels = sum(xxCels); Error Message Trouble Shooting
Show older comments
After using a cell proliferation code for many years, the system update suddenly stopped recognizing the function All_cels = sum(xxCels). I'm not sure exactly what to change in the code or if it is a problem with the images themselves. Any assistance would be greatly appreciated!

Answers (1)
We can't see enough of your code to explain why, but the error message means that your variable xxCells does not exist. It appears to be created inside a loop or statement, so check why that code is not running.
See this example, which creates the same error because xxCells does not exist.
allCells = sum(xxCells)
2 Comments
Jennifer Pennise
on 18 May 2023
Cris LaPierre
on 18 May 2023
Edited: Cris LaPierre
on 18 May 2023
Highly recommend going through MATLAB Onramp to become familar with the fundamentals. It takes about 2 hours to complete, and will help you be comfortable using MATLAB.
Your code appears to not be loading any tif files, specifically the '*ch00.tif' ones. They appear to be located in your Documents folder. The code is written to expect them to be in the same folder as your script, which appears to be in your Downloads folder. Move your script to your Documents folder.
Categories
Find more on Geographic Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!