All_cels = sum(xxCels); Error Message Trouble Shooting

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)
Unrecognized function or variable 'xxCells'.

2 Comments

Hi Cris thank you for the response.
I am not too well versed in coding to fully understand the terminology in these commands. However, I attached the full MatLab code if you are able to take a closer look at what could be the error.
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.

Sign in to comment.

Categories

Asked:

on 11 May 2023

Edited:

on 18 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!