Problem Matlab Ubuntu

6 visualizaciones (últimos 30 días)
Alex Molina
Alex Molina el 9 de Nov. de 2011
Comentada: Walter Roberson el 28 de Mayo de 2021
Hi everyone, i have a problem for running matlab in ubuntu with the path directory. I use this form:
Amoy=Average('./TestProcess/') (The function requires the path directory of the images to process)
So, this doesn't work in ubunto but the strange is that same function works perfectly in windows Xp.
The error shows
Error using => imread at 374
If Anyone can help me I will apreciate
Thanks to all
  5 comentarios
Bhadange Mihir
Bhadange Mihir el 28 de Mayo de 2021
Hey i can't install matlab on ubuntu. please help
Walter Roberson
Walter Roberson el 28 de Mayo de 2021
Please open a question about installing matlab as it is not relevant to the current topic

Iniciar sesión para comentar.

Respuestas (3)

Alex Taylor
Alex Taylor el 9 de Nov. de 2011
To get an answer to your question, you should set a breakpoint at the line where you are calling imread. Examine the full path and filename you are passing to imread. It is very likely be that when you do this, it will be a simple unix path vs. windows path issue.
I'd look at the functions fullfile and filesep for help generating platform agnostic paths.
help fullfile
help filesep
Hope this helps.
Alex.

Daniel Shub
Daniel Shub el 9 de Nov. de 2011
Are all your file separation slashes correct? You can use filesep to handle the / and \ differences. Is the directory your images in readable?

Alex Molina
Alex Molina el 10 de Nov. de 2011
>> Amoy = Average('./TestProcess/'); ??? Error using ==> imread at 374 File "./TestProcess/./TestProcess/CamA_2008_04_07_15_00_00_17.jpg ./TestProcess/CamA_2008_04_07_15_00_00_67.jpg ./TestProcess/CamA_2008_04_07_15_00_01_17.jpg ./TestProcess/CamA_2008_04_07_15_00_01_67.jpg ./TestProcess/CamA_2008_04_07_15_00_02_17.jpg ./TestProcess/CamA_2008_04_07_15_00_02_67.jpg ./TestProcess/CamA_2008_04_07_15_00_03_17.jpg ./TestProcess/CamA_2008_04_07_15_00_03_67.jpg ./TestProcess/CamA_2008_04_07_15_00_04_17.jpg ./TestProcess/CamA_2008_04_07_15_00_04_67.jpg " does not exist.
Error in ==> Average at 15 A = imread([ImgPath,lsrep(1,:)]);
This is the message, that appears when i try to ejecut the function. I try to change the slashes the point but doesn't works in ubuntu 10.04
  7 comentarios
Alex Molina
Alex Molina el 11 de Nov. de 2011
So this images are standard size
Walter Roberson
Walter Roberson el 11 de Nov. de 2011
And if other images accidentally get put in to the same directory?

Iniciar sesión para comentar.

Categorías

Más información sobre Search Path en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by