MatLab

I am plotting a bar graph in Matlab and i want to shift the entire horizontal axis by some value. The value will be based on the total number of bars and also the average value of bars. How to shift the horizontal axis in Matlab plots. I am using m scripts to load the data and plot the data as bar graphs. Thank you for your help. How to move the graph in Barplot in matlab in both X dimension and Y dimension? I am using Matlab 2010 if it is worth mentioning and running on Windows 7 operating system. Please leave comments if more details are required to help me solve this problem.

  • 412 views
  • 0 answers
  • 0 votes

I am trying to generate a sphere based on 3D walk plot and was almost successful. Now i need to generate the random walk points on the sphere to simulate the lighting effects later on but as of now, i cannot see the points getting joined. It simply displays as a dot in the window but doesn’t plot over the sphere. How to overlap the random points on sphere and make them connected? Is it possible to overlap two plots one over the other so that I can present my random walk points on any other 3D plots? Looking forward for your reply.

  • 282 views
  • 0 answers
  • 0 votes

How to see whether the installed Matlab supports C program compiling? If I have installed Microsoft visual studio, does it mean that I already have a C compiler on my PC? How to link the C compiler in PC to Matlab so that the scripts can be written in C. Actually run programs written in C to run and perform along with Matlab. How to add C files to compile in Matlab window? How to view the results? What are the advanced ways of performing C and CPP compilation in Matlab? Guide to tutorials are welcome

  • 398 views
  • 1 answers
  • 0 votes

I am trying to do the navigation project where the code will continuously get the snapshot of the Google image in Satellite mode very 100 ms. The script has to run the image processing part and give some structures result to the next module for rest of the processing. Currently I am able to perform the required functions in PC with in 100 ms. But there is no more scope for processing because of the 100 ms image input frequency? What are the solutions available to optimize the execution speed? Should I opt for 200 ms input?

  • 295 views
  • 0 answers
  • 0 votes

I am performing Block convolution method in Matlab. I am planning to use this in the future for my main project as well. Currently the entire code takes 20-40 s to complete the execution. But, sometimes for certain inputs the Matlab doesn’t execute the complete m script and waits infinitely. I have to later kill the task or use Ctrl break. But, if re run the same code without changing the inputs, the code executes properly. What might be the problem of the cause?

  • 306 views
  • 0 answers
  • 0 votes

I have a code which read an input image and searches for a Arrow mark. I need to find the Pin point section of the arrow mark? How to search for the Arrow mark shape in the image? How to find the X,Y vectors of the pixel which is the closest point of the arrow tip? How to locate multiple arrow marks if possible? The arrow marks are single lines only with the inverted V making the tip. The line will be drawn by another user and will be shred to me.

  • 304 views
  • 0 answers
  • 0 votes

How to create buttons in Matlab. Basically, looking for code to generate Graphical user Interface code. I also have the requirement that if the user clicks on one button in one figure, the button click action should also trigger the corresponding call back function. I have four figures in Matlab and user may select any button in any of the window. Once input is received from the user, the code has to perform similar click functions in remaining windows too. Please help.

  • 344 views
  • 0 answers
  • 0 votes

I am trying to solve a equation in Matlab. For example, assume solving quadratic equations. The problem I am facing is the results are not matching on different machines. I had stored a big file with the solutions and when run on my team members PC it gave slightly different results. Though the error is very negligible, the system cannot accept them because they are simply different. One is on Mac and another is on Windows 7. What are the known accuracy issues in Matlab? Can I post the code so that the code can also be verified? How to make the decision of Platform for Matlab so that the error will be zero all the time. Thank you for your reply.

  • 359 views
  • 0 answers
  • 0 votes

I want code for running Matlab scripts so that whenever the data is submitted by the user, the code has to pick random numbers from it and generate requested number of 3×4 matrices. The user will provide path of the file in which random numbers are stored. The user will also mention the number of matrices. How to load and randomize the existing numbers in the file? What are the features of file load functions which can accomplish this task? What are the existing random number generation logics?

  • 364 views
  • 0 answers
  • 0 votes

I am looking for innovative way of adding the third number to the xls sheet in Matlab. I have multiple xls sheets with three columns filled with numbers. It represents some set and presently I want to run through all the sheets and perform the following: I want to check the third column value with the third column value of previous row, if it is less than the average of previous three. I also have to change the colors of the modified cells? Can anybody share the flow of the code? Are there any easy functions for them?

  • 396 views
  • 1 answers
  • 0 votes

Articles

Blogs

Tips