How can I write these codes in Guide
I want to inter wavelength and Amplitude
to see the image in fron.
Thanks
% Creates a matrix describing a topographical surface
xRes = 2; % Sets the resolution (step length), in µm, along the x-axis.
yRes = 2; % Sets the resolution (step length), in µm, along the y-axis.
zRes = 1; % Sets the resolution (step length), in µm, along the z-axis.
xLength = 4000; % Sets the length of the surface in X.
yLength = 3000; % Sets the length of the surface in Y.
f = @(x) 3sin(x2*pi/100) + 1003; % The function for the sine wave with the
% amplitude 3 µm and wave length of about 100 µm. Mean level is
% 1003 µm.
% Prints the sine wave into a matrix:
A = zeros(yLength/yRes+1,xLength/xRes+1);
for k = 1:length(A(:,1))
for l = 1:length(A(1,:))
A(k,l) = f(l-1);
end
end
Please follow these steps in reporting this problem to The MathWorks so
that we have the best chance of correcting it:
Send this crash report to segv@mathworks.com for automated analysis.
For your convenience, this information has been recorded in:
C:\DOCUME~1\atraqsam\LOCALS~1\Temp\matlab_crash_dump.5948
Also, if the problem is reproducible, send the crash report to support@mathworks.com along with:
A specific list of steps that will reproduce the problem
Any M, MEX, MDL or other files required to reproduce the problem
Any error messages displayed to the command window
A technical support engineer will contact you with further information.
[CENTER][FONT=Traditional arabic][SIZE=4]هل اتبعت الخطوات التي قلت لك عنها ؟
لانه حسب الصورة قمت بتشغيل البرنامج بواسطة
Open
الخطا الذي ظهر عندك ممكن سببه اصدار الماتلاب الخاص بك
هذا النوع من الاخطاء غير شهير
لذلك اتبع الخطوات التي قلت لك عليها بتشغيل البرنامج بواسطة فتح ملف
simira.m
وليس ملف [/size][/font] [FONT=Traditional arabic][SIZE=4]
simira.fig
وذلك بالضغط عليه وليس تشغيله من نافذة
command window
وعندما يفتح الملف
[/size][/font]simira.m
اضغط على F5 او Run
[/center]
الاصدارات القديمه يوجد بها بعض المشاكل والتى تم تصحيحهها فى الاصدارات القديمه
يجب عليك تحديث البرنامج لاخر اصدار
والبرنامج موجود فى المنتدى ويمكنك تحميله
With these codes, the matrix A have 4000 points and this take a long time, how can I let this program work quickly with less Matrix and the same wavelength 100 um? Thanks
xRes = 1; % Sets the resolution (step length), in µm, along the x-axis. yRes = 1; % Sets the resolution (step length), in µm, along the y-axis. zRes = 1; % Sets the resolution (step length), in µm, along the z-axis.
xLength = 4000; % Sets the length of the surface in X.yLength = 3000; % Sets the length of the surface in Y.wavelength = 100;f = @(x) 3sin(x2*pi/wavelength) + 1003; % The function for the sine wave with the % amplitude 3 µm and wave length of about 100 µm. Mean level is % 1003 µm. % Prints the sine wave into a matrix: A = zeros(yLength/yRes+1,xLength/xRes+1 for k = 1:length(A(:,1 :,for l = 1:length(A(1 A(k,l) = f(l-1 endend