Answered
i want to display two or multiple images in multiple axes how i write the code
Use the *subplot* function to divide your figure into multiple axes upon which you can tile your images. See <http://www.mathwo...

12 years ago | 0

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

12 years ago

Solved


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

12 years ago

Solved


Which values occur exactly three times?
Return a list of all values (sorted smallest to largest) that appear exactly three times in the input vector x. So if x = [1 2...

12 years ago

Answered
How to find the common values of ith row and the rest of the rows in a matrix?
If the idea is to find elements that are common to each row then you could try the following % get the number of rows of A ...

12 years ago | 0

Answered
How this code writes in Cell array ?
The code does not _write in the cell array_. Each cell of the array is populated with a file identifier to a file named *digitX...

12 years ago | 1

Answered
how to override a diary command if another diary already exists?
You can check the status of the diary with the following code diaryStatus = get(0,'Diary'); The *diaryStatus* will be the...

12 years ago | 0

| accepted

Answered
GUI Callbacks - Passing brushed data between call backs
In the *Window1_pushbutton_Callback*, the code is updating the *handles* structure with *ecgDWT1* as handles.ecgDWT1 = ecg...

12 years ago | 0

| accepted

Answered
How to break up voronoi cell into triangles (points from center, and two cell vertices)?
Using the first example of <http://www.mathworks.com/help/matlab/ref/voronoi.html>, x = gallery('uniformdata',[1 10],0); ...

12 years ago | 0

| accepted

Answered
writing cellArray to doc file.
If you are trying to write the cell array data to an MS Word file, then you should check out <http://www.mathworks.com/matlabcen...

12 years ago | 0

| accepted

Answered
How to assign names to save different figures?
I think that the problem is with the inner *for* loop. The code seems to know already about the number of figures that it has t...

12 years ago | 1

| accepted

Answered
using property 2x slower: myprop = [myprop(2:end); new]
Your circular buffer class is pretty neat. I downloaded the package and ran the *plot_circVBuf_speedtest* function and observed...

12 years ago | 0

Answered
The device associated with device ID 1 is already in use. ERROR!!! . One webcam used for function and gui display???
Hi Richard - that is quite a number of lines of code that you pasted in the comment. In the future, please either format the co...

12 years ago | 2

| accepted

Answered
How do I change numbers on the x-axis?
Try changing the *XTickLabels* of the axis. To view the current x tick labels, in the Command Window type get(gca,'XTickLa...

12 years ago | 2

| accepted

Answered
What 0 represents in rand function?
See this link <http://www.mathworks.com/help/matlab/math/updating-your-random-number-generator-syntax.html> which discusses the ...

12 years ago | 1

| accepted

Answered
how to use radio buttons and execute codes under selected button.I have two buttons local histogram and global histogram
Anamika - The link <http://www.mathworks.com/help/matlab/creating_guis/add-code-for-components-in-callbacks.html#f10-1001546> de...

12 years ago | 0

| accepted

Answered
Easy Question, update scatter point in loop
Try grabbing the handle returned from each *scatter* call and then deleting that on subsequent iterations. Outside the *for* lo...

12 years ago | 0

Answered
HOw can I change the size of the arrows
From your code, grab the quivergroup handle that is returned from the *quiver* function h = quiver(T,Y, scale.*DT, scale.*DY...

12 years ago | 2

Answered
How to make a simple start button?
Check out the following link <http://www.mathworks.com/help/matlab/ref/questdlg.html>. You can use a question dialog to query t...

12 years ago | 0

| accepted

Answered
What this code do?
In the Command Window type *help dos* or *doc dos*. The *dos* function executes a DOS command and returns the result: _statu...

12 years ago | 2

Solved


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

12 years ago

Solved


The Goldbach Conjecture
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

12 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

12 years ago

Solved


How to find the position of an element in a vector without using the find function
Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

12 years ago

Answered
Need help regarding publish problem....
Mujhaid - using *publish* to publish some code in a script or m-file and running *help* or *doc* on a function are two different...

12 years ago | 1

| accepted

Answered
??? Error using ==> events Too many input arguments.
I took your code and was able to reproduce the same behaviour. One thing that MATLAB complained about was the naming of *events...

12 years ago | 1

| accepted

Answered
Use keyboard input to assign value to a variable
I'm guessing that you will have some sort of GUI or even just a figure that has the displayed image. And so long as your GUI or...

12 years ago | 3

| accepted

Answered
wcodemat and uint8 error
What this error message is telling you is that the function *wcodemat*, which you are using somewhere in your code, is not defin...

12 years ago | 1

| accepted

Answered
while loops. Why is it not stopping
One problem is that there are two conditions to the *while* loop: one to check on the number and the other to check on the strin...

12 years ago | 0

| accepted

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

12 years ago

Load more