Answered
Rotational Movement of an object
<http://blogs.mathworks.com/videos/2011/02/02/animating-an-objects-trajectory-in-matlab-with-hgtransform/ Relevant> A video u...

10 years ago | 0

Answered
How to consolidate rows with same value, while adding their cells?
clear d = {'date', 'precip'; '2/1', 4; '2/1', 5; '2/1', 6; '2/2', 2; '2/2', 3; '2/2', 1; '2/2',4} dates = {d{2:...

10 years ago | 1

| accepted

Answered
Question about plotting a long series of lines
>> clf; tic; for i = 1:10000; h(i) = line(rand(1,2), rand(1,2)); end; toc Elapsed time is 0.933154 seconds. I respect the id...

10 years ago | 0

| accepted

Answered
Fix the position of GUI
<http://www.mathworks.com/support/solutions/en/data/1-3MY8PN/ This> might help.

10 years ago | 0

Answered
Getting the maximum value of several matrices loaded from image files.
Do not store the images in cells. Just load each in turn, get the maximum value. Compare this maximum value to the previously ...

10 years ago | 1

Answered
How do I open a GUI from a GUI?
This <http://www.mathworks.com/help/matlab/creating_guis/making-multiple-guis-work-together.html documentation link> might help....

10 years ago | 0

Answered
how to plot histogram of hue value in polar ?
<</matlabcentral/answers/uploaded_files/4325/colorWheel.jpg>> clear clc clf z = peaks(300); r = z(:,150);...

10 years ago | 3

Answered
How to deal with gui's and handles in .m
<http://blogs.mathworks.com/videos/2008/04/17/advanced-matlab-handles-and-other-inputs-to-guide-callbacks/ Video dealing with th...

10 years ago | 0

Answered
GUI 'uitable' with option to add rows using push button
Add button to your code of this form: handles.uitable is the handle to your uitable. % --- Executes on button press in p...

10 years ago | 0

| accepted

Answered
how to set up color range?
Imagesc is for image SCaled. Use image instead, it will keep the same color range rather than scaling to use the full dynamic r...

10 years ago | 0

Answered
What is a wrapper?
This is a reasonable definition: http://en.wikipedia.org/wiki/Wrapper_library How do you know it is a wrapper if you do no...

10 years ago | 0

Answered
What does "Reference to non-existent field 'minfoFileRevision' " mean and how do I solve the problem?
Something, somewhere, is trying to refer to a field of a structure that does not exist. Here is a simple way to get that error....

10 years ago | 0

Answered
How to make figure appear within defined axes of guide?
plot(hAxes, WHATEVER you were plotting before) This will force plot to use the axes refered to by the handle hAxes.

10 years ago | 0

| accepted

Answered
Plot 4d surface from x, y, z, c data
I am not sure, but I think you might want <http://www.mathworks.com/matlabcentral/fileexchange/764-sliceomatic sliceomatic>

10 years ago | 1

| accepted

Answered
parfor and global variables
Why use globals? They are often just confusing and hard to debug. Just pass them into simuconf.

10 years ago | 0

| accepted

Answered
Why are loops the devil?
In looking at your first code, I expect it is the FIND that is slowing down the code. In the second it is likely the num2str th...

10 years ago | 0

Answered
set enable propeprty to off
You might want to put a DRAWNOW before simulation. It could help to ensure the GUI is updated before simulation is called.

10 years ago | 0

Answered
Probability function of people at a party.
I did not run everything, but here is a problem: if m = 1 %checks first condition = is a statement. == is a question. ...

10 years ago | 0

| accepted

Answered
How do I delete empty array among populated arrays?
You are probably better off not having variables named like this in the first place. <http://www.mathworks.com/matlabcentral/...

10 years ago | 1

Answered
How to avoid for loops using compact array notation?
I find it very unlikely that this will be the bottleneck in your code. Have your run this through the profiler to confirm that ...

10 years ago | 0

Answered
How to have random groups( of 2 elements) from a squared matrix?
There are 24 four connected pairs. Three per row, three per column. I would generate a random integer from 1-numel(A) I wou...

11 years ago | 0

Answered
Recognizing shapes in (binary) matrix
If you KNOW that you are either dealing with a line or a circle, then could you look at the MajorAxisLength and MinorAxisLength ...

11 years ago | 0

| accepted

Answered
find subset of a set
>> all(ismember([1 3], [2 4])) ans = 0 >> all(ismember([1 3], [1 3 2 4])) ans = ...

11 years ago | 1

| accepted

Answered
Allow Question Markup Capability with fewer Reputation Points
You have those privileges now on your own posts. That is a list of suggested things to do to OTHER people's posts when you ge...

11 years ago | 0

Answered
Sign switching in a sequence
Look at the diff command. It will subtract each element from the next. Look at the sign of that calculation and you will be al...

11 years ago | 0

| accepted

Answered
How to make a mean image out of several images converted into a density map
The image you are dealing with is really just a matrix of numbers where the numbers represent the density. If every image is th...

11 years ago | 0

Answered
Efficient implementation of a functions with vector arguments
Do not worry about efficiency until you know it is a problem. I think you might be surprised where the bottlenecks in your code...

11 years ago | 0

| accepted

Answered
how to customize a colorbar?
Colorbar should not have any bearing on a line plot. Maybe you mean the 'colororder' property of the axes: >> get(gca, 'colo...

11 years ago | 0

Answered
Use of timer: what's the code to indicate that its period of time is expired?
It is not clear what you are asing, but this is a primer on timers. <http://blogs.mathworks.com/videos/2008/05/05/advanced-ma...

11 years ago | 0

Answered
Creating a solid/surface of revolution from discrete data?
The profile you give represents the radius. Set it to whatever you want. Then you can translate the surface by adding a consta...

11 years ago | 0

Load more