Jump to content

Manoj Kandukuri

  • Content count

  • Joined

  • Last visited

About Manoj Kandukuri

  • Rank
    Advanced Member

Profile Information

  • Gender
  • Country
    United States
  • Interests
    Numerical Computing, Machine learning
  • Are you University user?

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Manoj Kandukuri

    Portion of a string to be BOLD in graphical objects

    Roberta, i just tried your suggestion, it didnt work. compose interpreted it as a string... Manoj kandukuri
  2. Manoj Kandukuri

    How can get and set linewidth?

    Hi Seoksan, you can save the plot to a variable and then set linewidth property for this variable.. clf; x = linspace(0,10,150); y = cos(5*x); h = plot(x,y,'b--o','linewidth',0.1); title('2-D Line Plot'); xlabel('x'); ylabel('cos(5x)') set(h, 'linewidth', 4) Manoj Kandukuri
  3. Manoj Kandukuri

    List of functions used in .oml script

    Thanks for your reply Jeff. I wanted to profile the functions used in oml scripts and their execution times in a report to improve the performance of the code. MK
  4. Manoj Kandukuri

    List of functions used in .oml script

    Is there a way to get list of functions (both inbuilt and user defined) used in .oml scripts? Thanks, MK
  5. Manoj Kandukuri

    compose with python graph

    Seoksan, I'm not sure why it didn't work but when i searched online, i found this is due to possible bug in axis('equal') - equal scaling by changing the limits when clf is refreshed, this causing the ylim changes to fade out. ( see https://github.com/matplotlib/matplotlib/issues/8093) Thanks, Manoj kandukuri
  6. Manoj Kandukuri

    Simple calling Python function from OML

    Kosuke IKEDA Great example!!
  7. Manoj Kandukuri

    compose with python graph

    Hi Seoksan, In the python file you have axis set to 'equal' and that is trying to make the axis limits to be equal. comment the line "plt.axis('equal')" and you can set the ylim and xlim as you requested. #plt.axis('equal') # axis limts plt.ylim(-4,2) plt.xlim(-1,5) Hope this helps MK
  8. Manoj Kandukuri

    surf plot question

    Hi SeokSan, Meshgrid of x and y vectors would give you the rows of the output array X which are copies of the vector x; columns of the output array Y are copies of the vector y. in your 1st example: X values are replicates of vector x and Y values are replicates of vector y' (transpose of vector y), giving you X & Y as square matrices with data points representing in 2Dplane (something like Cartesian coordinates) So when you calculate z (in your 1st example) you're doing element-wise multiplication of sin(X) (which is x vector repeated Horizontally) and cos(Y) (which is y vector repeated vertically) in your 2nd example approach, while calculating c you're doing matrix multiplication of sin(a') (which is x vector repeated vertically) and cos(b) (which is y vector repeated Horizontally) which is not the same mathematical operation as your 1st approach. that is why you see 2 different graph's. so to achieve the same result with these 2 approaches; you need to surface plot of c' (transpose of matrix c) surf(a,b,c') or change the logic little bit a=[0:0.1:2*pi]; b=a'; c=cos(b)*sin(a); figure(2) surf(a,b,c) Hope this helps!
  9. Manoj Kandukuri

    Calculate envelope of curve

    Hi Ronald, I apologize for late reply.. I don't have an existing macro which does the same... Thanks, MK
  10. How to display a portion of a string as BOLD (for example : label ON) in uicontrol? han.text_label = uicontrol('Style', 'edit','string',{'label : on'},'FontSize',10,'fontweight','bold', 'Position', [1 100 200 30]); Thanks, Manoj Kandukuri
  11. Manoj Kandukuri

    Plots, Figure : to make individual window

    Hi SeokSan, As stmaster suggested you can do undock/dock manually. And if you want to make the Float option as default, You can select/check the Float option in Preferences file. File> Preferences > plot> Float Thanks, MK
  12. Manoj Kandukuri

    Calculate envelope of curve

    Hi Ronald, You can use max or min command to find the maximum or minimum Y value in the data. Hope this helps, Thanks, Manoj Kandukuri
  13. Manoj Kandukuri

    3D-plot from type bar3

    Hi BeLlng, Bar3 is supported in next release (in next 2 months). With Compose as an IDE ,we can leverage Python bridge to achieve the task of plotting the 3D bar, (as it is not yet supported). I have created a simple example( as attached) for doing so. I'm not sure if you have prior experience with python, but I have attached python bar3 help document as well for your reference. https://matplotlib.org/2.0.2/mpl_toolkits/mplot3d/api.html. If you have any questions regarding python bar3 example file or if you have any specific requirements let me know, i'm more than happy to help you.. Steps: 1. download the files in a folder 2. open test.oml and Hit Run (you will see bar3 plot in python console.) if you want to try it with your data, just replace foodat with your variable in line 5. ('exporttopython(foodat,'data');') test.oml bar3_py.py
  14. Manoj Kandukuri

    List number of available CPUs

    Hi Debdatta, you can use "System" or "Unix" command in OML which executes Shell command string.... I haven't used Linux for a while now, you can use shell commands like "Top", "/proc/cpuinfo", to get CPU utilization. I didn't tried these commands in Linux now as i don't have Linux machine: you can give it a try system('top -b -n 1 |grep ^Cpu') system('/proc/cpuinfo') You can find many other useful linux shell commands online which can be used along with "system" or "unix" commands of COMPOSE OML. Hope this helps. Thanks, Manoj Kandukuri
  15. Manoj Kandukuri

    plot and text setting

    Yes Seoksan, Currently development team are working on it as we speak. Manoj kandukuri