Answered
Problem running Icoshiftdemo
Unfortunately you can not run this function in Octave, because it contains figure properties implemented only in Matlab. I've t...

14 years ago | 0

Answered
find a correlation
For highest correlation: maxR = max(max(triu(R,1))) % highest correlation [row,col] = find(R==maxR,1,'first') The great...

14 years ago | 0

| accepted

Answered
Find similar elements in a matrix
[h1 h2] =hist(X(:),unique(X)); h3 = unique(h1); h3 = h3(end:-1:1); for k=1:length(h3) disp(['There is ' num2str(h3(k))...

14 years ago | 0

| accepted

Answered
Find similar elements in a matrix
My suggestion: [u, ~, n] = unique(X); [h1 h2] =hist(n,unique(n)); u(h2(h1==max(h1)))

14 years ago | 0

Answered
use of ode45 for projectile trajectory including drag
To solve this system, create a function ode_func containing the equations: function dy = ode_func(x,y) k = 1; g = 9.8; v...

14 years ago | 0

| accepted

Answered
ODE with a parameter that chages at each time step
Did you mean delay differential equations? doc dde23

14 years ago | 0

Answered
When i solve this equation, i get a surface with a slant! I dont know what is the problem, can anyone fix it?
First of all, the radius r in polar coordinates must be non-negative.

14 years ago | 0

Answered
ray casting problem
Are you familiar with this file? <http://www.mathworks.de/matlabcentral/fileexchange/26852-a-fast-voxel-traversal-algorithm-f...

14 years ago | 0

Answered
Change saved .fig figure with multiple axes and plots
Try in this way: lns = findobj('Type','Line'); for k=1:length(lns) if 'condition for identifying' set(h(k),'LineS...

14 years ago | 0

Answered
ginput question
One possibility: % Display a file I = imread('rice.png'); imshow(I); zoom on; % use mouse button to zoom in or out % Pr...

14 years ago | 0

Answered
Too many output arguments, simple but useful question
I suggest to write own function, something like this: function varargout = split(a) for k = 1:nargout varargout{k} = ...

14 years ago | 1

Answered
How to create a number of "Edit Text" feilds in a GUI, depending on the user input given in the GUI through an "Edit text" field itself?
Yes, it is possible :) Look at the example: function test e = uicontrol('Style','Edit','Units','Normalized','Position',[.4...

14 years ago | 0

Answered
Area of Triangle
According to Wikipedia: <http://en.wikipedia.org/wiki/Triangle#Using_coordinates> x = rand(3,1); y = rand(3,1); z = ra...

14 years ago | 1

| accepted

Answered
Colour each bar in histogram and add a colorbar
The ability to change the color in each bar of a plot is not built into MATLAB: <http://www.mathworks.com/support/solutions/e...

14 years ago | 0

Answered
going next command after specified time
If you use the INPUT function you can try replace it with the WAITINPUT: http://www.mathworks.com/matlabcentral/fileexchange/...

14 years ago | 1

| accepted

Submitted


StemBar
Function similar to the matlab stem3 but drawing bars instead of lines with markers.

15 years ago | 1 download |

3.5 / 5
Thumbnail

Submitted


Lissajous curve
LISSAJOUS - a simple example of 2D line plot in Matlab, and creating a GUI without GUIDE.

15 years ago | 5 downloads |

5.0 / 5
Thumbnail

Submitted


waitinput
WAITINPUT Prompt for user input, but no longer than t seconds.

15 years ago | 3 downloads |

3.0 / 5

Submitted


Wprowadzenie do Simulinka (Introduction to Simulink in Polish)
Wprowadzenie do Simulinka w formie krótkiego kursu w języku polskim.

15 years ago | 1 download |

4.0 / 5
Thumbnail