![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|
|
#1
|
|||
|
|||
|
No he entendido esencia de tu dificultad.
(Mi espanol es no muy bueno) Sobre crear exe de m-file Por ejemplo, tenemos test funcion en test.m. (Matlab compiler puede compilar solo funciones) Código:
%---------- test.m --------------
function test(arg1_str)
% puede ser sin argumentos
k = eval(arg1_str);
han = 128;
N = 2048;
rate = 1;
for i = 1:N
sample(i) = 3*rand() + sin(2.0*i)*sin(0.1*i);
end;
sample = sample .* k;
[spectrum, freq] = psd(sample, N, rate, hanning(han), han/2, 'linear');
dlmwrite('result.dat', [freq, spectrum], ' ');
mcc -m -B sgl -I "C:\Program Files\MATLAB\R2007\toolbox\signal\signal" test.m o simplemente mcc -m test.m Para posibilidad de ejecutar este exe-file en un ordernador sin Matlab, necesitas instalar Matlab Run-Time. (mglinstaller.exe en Matlab6.5, MCRInstaller.exe en Matlab2007R etc - mira el Help) De Delphi puedes ejecutar este exe-file y obtener resultados por medio de archivo.
|
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Cómo me comunico con Matlab mediante COM | felipin007 | Providers | 2 | 21-04-2010 07:49:34 |
| Estructura del fichero MATLAB | bustio | Varios | 6 | 24-10-2007 20:12:16 |
| Consulta Delphi 6, Delphi 2005 y Delphi 2006 | Leviatan | Varios | 6 | 18-08-2007 16:02:08 |
| problemas con DLL de MatLab | emeceuy | Varios | 6 | 01-08-2007 23:02:39 |
| Combinar Matlab-Builder | Amago | C++ Builder | 0 | 10-06-2004 13:03:37 |
|