Gui

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


[CENTER][FONT=Traditional arabic][SIZE=4]السلام عليكم

نفس المشكلة التي سبق وان حدثتك عنها

في ماتلاب

لكتابة دالة cos مثلا

حيث f هي frequency الخاصة بالموجة

و T هي sampling period اي معكوس sampling frequency

وان كنت تريد رسم هذه الدالة في شكل مساحة 3D

اي من هذا الشكل

فهذا برنامج هومحاولة بسطية ممكن تساعدك

فرضت فيه ان sampling frequency = 4 signal frequency
احتراما لنظرية شانون
[/size][/font]Shannon

[FONT=Traditional arabic][SIZE=4]ملاحظة اخرى

signal frequency التي تظهر في الواجهة ليست هي الحقيقية
فهذه قيمة مضروبة في
1000000
كي نستطيع رؤيتها

“في المرفقات”

لتشغيل البرنامج يكفي الضغط على ملف simira.m بعد وضع جميع الملفات في المستند الرئيسي لماتلاب

[/size][/font][/center]

Thank you so much
I am sorry I do not hav Arabic keybord

Hello,
I cannot open the figure, can you help me , please

[CENTER]ضعي جميع الملفات المرفقة في المستند الرئيسي لماتلاب

اضغطي على ملف simira.m

بعدها شغلي البرنامج بالضغط على F5

اذا لم يشتغل بعد كل هذا الرجاء ارسال نوع الخطا الذي يكتبه ماتلاب
[/center]

Configuration:
MATLAB Version: 7.0.0.19920 (R14)
Operating System: Microsoft Windows XP
Window System: Version 5.1 (Build 2600: Service Pack 3)
Processor ID: x86 Family 6 Model 15 Stepping 11, GenuineIntel
Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java HotSpot™ Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997
Register State:
EAX = dd000000 EBX = dd000000
ECX = 00cd5e00 EDX = 78874cc4
ESI = 1265be40 EDI = 12c2b7b0
EBP = 00cd5e28 ESP = 00cd5e00
EIP = 789bf671 FLG = 00010286

Matlab do not work

The problem I can not run it

Stack Trace:
[0] m_interpreter.dll:public: virtual void __thiscall FunctionHandleWorkspaceCI::customLoad(class mcos::COSInterfacePtr,class mcos::COSValue,class mcos::COSDataTypePtr)(0x136bad80, 0x12bc55d0, 0x013ba110, 5) + 401 bytes
[1] mcos.dll:public: virtual void __thiscall mcos::COSClassI::customLoad(class mcos::COSInterfacePtr,class mcos::COSValue,class mcos::COSDataTypePtr)(0x136bad80, 0x12bc55d0, 0x013ba110, 5) + 133 bytes
[2] mcos.dll:$L86174(0x00cd65c4, 0x12b698c0, 0, 0x00cd65d8 “ôeÍ”) + 128 bytes
[3] mcos.dll:public: virtual class mcos::COSInterfacePtr __thiscall mcos::File::getI

I have this error when I run it

Please follow these steps in reporting this problem to The MathWorks so
that we have the best chance of correcting it:

  1. 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
  2. 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.

Can you help me , please?

Thank you so much
Sameera

The Mtlab answer you can see in attach file

[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]

I am very sorry
I did all that
I do not know where is the problem
Can you send it to me again only
simira.m

الملفات في المرفقات

I am sorry , I have error in simira at 16
I sent file with the error
I hope you can help me

Here the file

I try to do the same program but I cannot, can you write to me the steps
Thank you very much

Yes, I understand now
this m.file work with new version
but I have old version
how can I run it in Matlab 7¨
Thanks

الاصدارات القديمه يوجد بها بعض المشاكل والتى تم تصحيحهها فى الاصدارات القديمه
يجب عليك تحديث البرنامج لاخر اصدار
والبرنامج موجود فى المنتدى ويمكنك تحميله

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