Rank: 1315 based on 89 downloads (last 30 days) and 4 files submitted

Priyanshu Agarwal

University of Texas at Austin

Personal Profile:


Professional Interests:
Robotics, Computer Vision, Mechatronics, Controls


Watch this Author's files


Files Posted by Priyanshu View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 May 2012 Screenshot 3-PRR Planar Parallel Manipulator Analysis GUI GUI for analysis of manipulability, workspace and path tracking of a 3-PRR manipulator Author: Priyanshu Agarwal robotics 26 0
15 Jun 2010 Screenshot SMARTY: A Vision Based Autonomous Ball Sorting Robotic System MATLAB GUI with asynch serial communication via bluetooth & image processing. Author: Priyanshu Agarwal image processing, bluetooth interfacing, asynchronous serial c..., gui, robotics, color identification 14 0
15 Jun 2010 Screenshot Speed Control of a DC Motor MATLAB GUI for real-time speed control of a DC motor. Author: Priyanshu Agarwal open loop control, onoff control, differential gap cont..., proportional control, pdpid control, motor control 31 1
31 Dec 2009 Screenshot (7+1) DOF 3-d Virtual Manipulator GUI Forward Kinematics of a (7+1) DOF manipulator is implemented using Virtual Reality Toolbox and GUI Author: Priyanshu Agarwal robotics 18 0
Comments and Ratings by Priyanshu View all
Updated File Comments Rating
01 Aug 2010 Hysteresis Thresholding C implementation of Hysteresis Thresholding Author: Massimo Fierro

Hi when I compiled and executed this code, I got the following error. I invoked it as TI = hysthresh(GI,0.1,0.4), where GI is a grayscale image.

??? Error using ==> hysthresh
YPRIME requires that Y be a 4 x 1 vector.

I also tried commenting this part in the code and recompiling the code. However, it ran out of memory.

11 May 2010 getkey Get a (single) keypress (v2.0, june 2012) Author: Jos (10584)

This function does not work well with a GUI. Once this is invoked repeatedly in a loop in GUI function the focus from the current GUI figure is lost. Is there anything that can be done in such a case?

Comments and Ratings on Priyanshu's Files
Updated File Comment by Comments Rating
27 Mar 2011 Speed Control of a DC Motor MATLAB GUI for real-time speed control of a DC motor. Author: Priyanshu Agarwal khoo, fremond

i really need some help over here..i have connected and run my stepper motor but how come i cannot control the speed of my motor?..can someone give me some hints?

below are my coding:

function text_speed_m1_Callback(hObject, eventdata, handles) sliderValue = get(handles.text_speed_m1,'String');

%convert from string to number if possible, otherwise returns empty sliderValue = str2nm(sliderValue);

%if user inputs something is not a number, or if the input is less than 0 %or greater than 100, then the slider value defaults to 0 if (isempty(sliderValue) sliderValue < 0 sliderValue > 256) set(handles.slider_speed_m1,'Value',0); set(handles.text_speed_m1,'String','0'); else set(handles.slider_speed_m1,'Value',sliderValue); end

% --- Executes during object creation, after setting all properties. function text_speed_m1_CreateFcn(hObject, eventdata, handles) if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end

% --- Executes on slider movement. function slider_speed_m1_Callback(hObject, eventdata, handles) sliderValue = get(handles.slider_speed_m1,'Value');

%puts the slider value into the edit text component set(handles.text_speed_m1,'String', num2str(sliderValue)); % Update handles structure guidata(hObject, handles);

% --- Executes on button press in pushbutton_speed_m1. function pushbutton_speed_m1_Callback(hObject, eventdata, handles) obj1 = instrfind('Type','serial','Port','COM8','Tag','');

if isempty(obj1) obj1 = serial('COM8'); else fclose(obj1); obj1 = obj1(1) end

fopen(obj1); sv2 = get(handles.text_speed_m1,'String'); fprintf(obj1,'%s','rs') fprintf(obj1,int2str(get(hObject,'Value')));

please give me some hints on what i do wrong..really need help now..thanks

Contact us