sir I want to make discrete time Fourier series on GUI MATLAB can any one tell...

60.1K

Verified Solution

Question

Electrical Engineering

sir I want to make discrete time Fourier series on GUIMATLAB can any one tell me step by step procedure or coding forDiscrete time Fourier series on GUI? pleaseeeee

Answer & Explanation Solved by verified expert
4.5 Ratings (831 Votes)
you will need to save and execute these function files first as these will be called in the main program which i will give you in the end FIRST function mo GUIobjectso GUIOBJECTS Gui objects class constructor The object idenfifies and also monitors the state of GUI objects See also GUIOBJECTS GET SET SAVESTATE SETSTATE SETOBJECT and RECOBJECT switch nargin case 0 defualt figure properties mofig figure case 1 inherit properties from parent object movietool mofig ofig end if or nargin 0 and nargin 1 isaoguiobjects Initialize Object Structure moname findobjmofigstylepushbuttontogglebuttonradiobutton checkboxeditsliderlistboxpopupmenu mostyle getmonamestyle mocolor getmonameback moenable getmonameenable mocallbk getmonamecallback mostate moparamI moparam mowindowI mowindow mo classmoguiobjects create class of name GUIobjects from structure mo elseif isaoguiobjects mo o end second function highlightohobjstatus GUIOBJECTSHIGHLIGHT Highlights log file simulated GUI object during movie playback HIGHLIGHTOHOBJSTATUS where O is the guiobject object HOBJ is the GUI object handle to be highlighted and SATUS indicates whether to highlight ON or unhighlight OFF HIGHLIGHTOALL highlights all GUI object See also GUIOBJECTS GET SET if nargin 2 status on end if andischarhobj strcmphobjall hobj oname color ocolor background evalback else index findhobj oname color ocolorindex if lengthindex 1 background evalback else background back end end switch status case on sethobjbackground09 09 0 case off sethobjbackgroundcolor end 3 function ovar1writeflag recordobjectoobjvar1 GUIOBJECTSRECORDOBJECT Identifies GUI object and obtains object properties for recording A writeflag is set if a valid object with properites has been found o GUIobjects object obj GUI object handle See also GUIOBJECTS GET SET writeflag 0 if ishandleobj objectindex findoname obj if anyobjectindex style ostyleobjectindex switch style case togglebuttonradiobuttoncheckboxsliderlistboxpopupmenu newvar getobjvalue case pushbutton newvar case edit newvar getobjstring end oldvar oparamobjectindex var1 oldvar newvar oparamobjectindex newvar writeflag 1 Update object states o savestateo end end 4 function o savestateoinitflag GUIOBJECTSSAVESTATE Save GUI objects user input properties INITFLAG determines whether initial or current properties are saved See also GUIOBJECTS SETSTATE if nargin 1 initflag 0 end hobjparam for v 1lengthoname style ostylev switch style case togglebuttonradiobuttoncheckboxsliderlistboxpopupmenu hobjparamv1 getonamevvalue case pushbutton hobjparamv1 case edit hobjparamv1 getonamevstring end end if initflag oparamI hobjparam owindowI getofigButtonDownFcnPointerWindowButtonDownFcn WindowButtonMotionFcnWindowButtonUpFcn owindow owindowI else oparam hobjparam owindow getofigButtonDownFcnPointerWindowButtonDownFcn WindowButtonMotionFcnWindowButtonUpFcn end 5th function    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students