Code Error?

4 visualizaciones (últimos 30 días)
Superb
Superb el 4 de Mayo de 2012
Hi, I'm new in Matlab and I've problem in running this code below, can anyone tell me how to solve the problem? And also, where to put in the image? Thanks a lot:)
[EDITED: Code copied from Matlab toolbox function deleted, Jan S]
% Skip NaN check here; it will be done by imreconstruct if input
% is double.
[EDITED: Code formatted, Jan S]
  6 comentarios
Superb
Superb el 4 de Mayo de 2012
Hi, thanks for the guide on tag :)
Daniel, is that we can't check it? I need this as I need to do my homework for the conversion of code, since other code we don't have imclearborder, so that's the only solution I have, sorry :(
Jan
Jan el 4 de Mayo de 2012
Please, Superb, do not post copyright protected code. This conflicts with the license conditions you have accepted, while you have installed Matlab. You can use the code and modify copies of Matlab's toolbox functions, but you cannot copy it. And do not forget to mention the author of the code, when you submit it as homework.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 4 de Mayo de 2012
You cannot define a function inside a script. The differences between functions and scripts are explained in the documentation. An easy solution is to convert the M-file to a function by starting it with the term "function" and define for the inputs and outputs as arguments.
  11 comentarios
Jan
Jan el 5 de Mayo de 2012
@Superb: Either you reprogram the function from scratch by your own, or you pay somebody to do this for you. But copying or "converting" copyrighted code is not an option.
You will not get assistance for stealing Matlab code in this forum.
Superb
Superb el 6 de Mayo de 2012
Ok, thanks, now I understand it, thanks for info :)

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Coder 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