Answered
for loop
x = zeros(5,1); for i = 1:5 x(i) = i*2; end disp(x)

14 years ago | 0

| accepted

Answered
Is there any thing to connect 2-3 line commands?
Use three dots ... For example: a = 1 + 2 - 3 + ... 4 + 5 ... +1;

14 years ago | 1

| accepted

Question


@ folders - what is it?
Hi, I am looking for information about the @ - directories, I've found only: <http://www.mathworks.com/help/techdoc/matlab_...

14 years ago | 2 answers | 1

2

answers

Answered
unnecesary variables are not shown after running the programm.
Write function instead of script. For example function [a b c] = my_function q = 1; s = 2; e = 3; r = 5; a = q+s; b = e - r...

14 years ago | 1

| accepted

Answered
need to ad an image on top of another image in axes,on gui!
Do you mean something like this? load mandrill imagesc(X) axis off axes('Units','Normalized','Position',[.55 .55 .1 .1 ]...

14 years ago | 0

Answered
How do I determine my MATLAB default character encoding scheme?
Another solution: feature('DefaultCharacterSet')

14 years ago | 2

Answered
how to show grid lines?
Do you have specified XTick and YTick? Look at these examples: plot(1:10) grid on and: plot(1:10) grid on set(g...

14 years ago | 0

Answered
How do I determine my MATLAB default character encoding scheme?
Use java class: import java.nio.charset.Charset encoding = Charset.defaultCharset()

14 years ago | 1

Answered
How do I determine my MATLAB default character encoding scheme?
get_param(0, 'CharacterEncoding')

14 years ago | 0

Answered
Define output of a callback function
doc assignin

14 years ago | 0

Answered
Value swapping
x(x(:,2)==7,:) = fliplr(x(x(:,2)==7,:))

14 years ago | 0

| accepted

Answered
calling isosurface without specifying isovalue
When the isovalue is not defined Matlab determines it by calling isovalue function. type isovalue returns the following ...

14 years ago | 0

Answered
how to find the intensity of an image
doc rgb2gray doc imadjust <http://www.mathworks.com/help/toolbox/images/f11-14011.html>

14 years ago | 0

Answered
Dynamic graph of polygonial lines
doc pause doc drawnow Example: hold all h1 = plot(rand(100,1)); h2 = plot(rand(100,1)); h3 = plot(rand(100,1)); ...

14 years ago | 1

| accepted

Answered
To draw a curve line
Maybe just: view(3) What exactly do you want to achieve? Smooth line? Or something different?

14 years ago | 0

Answered
Color histogram as a function of x-axis
There is no built in function in MATLAB to do this. My suggestion is: x = rand(1000,1); [n,xout] = hist(x); width = 0...

14 years ago | 0

| accepted

Answered
unusual problem with an unusual solution
OK. There is problem with rob.keyPress in Oleg Komarov answer. When the time comes to an end an error occurs. So if you want to ...

14 years ago | 0

Answered
3 plane to array vectorization
doc squeeze Q=squeeze(Atr(1,1,:));

14 years ago | 0

| accepted

Answered
Change circular histogram scale
circ_plot uses standard matlab rose function. Unfortunatelly there is no 'rlim' (something like xlim) property. You can fix it b...

14 years ago | 0

Answered
command for one copy of 3 figure in subplot form and put it in only one picture in bmp format
Is this what you meant? % example figure subplot(311) plot(rand(100,1),'r') subplot(312) bar(rand(5,1)) subplot(313) ...

14 years ago | 1

Answered
Fast calculation of short cumulative product vector
My suggestion: y3 = bsxfun(@power,a,1:len)

14 years ago | 0

Answered
Second derivative of an ODE
Perhaps this simple source code will help you solve your problem: function dx = ode_test(t,x) dx(1) = sin(t); dx(2) = x...

14 years ago | 0

Answered
Simulink
What is your initial condition? Maybe 0? In this case should be -1. <http://www.mathworks.com/help/releases/R2008b/toolbox/sim...

14 years ago | 3

| accepted

Answered
Setting path not working!
If I understand correctly: mfilename('fullpath') It returns the full path and name of the file in which the call occurs...

14 years ago | 1

| accepted

Answered
closing a specified figure (if exist)
h = figure; if ishandle(h) close(h) end

14 years ago | 3

| accepted

Answered
How to get fitting parameter in sftool.
The generated code should look something like this: %% Initialization. % Convert all inputs to column vectors. x = x(:); ...

14 years ago | 0

| accepted

Answered
how to do differentiation?
doc diff

14 years ago | 0

Question


surface of revolution along the ellipse
On Polish Matlab forum: <http://matlab.pl/viewtopic.php?t=5613> Someone asked how to draw a surface of revolution. To find...

14 years ago | 0 answers | 0

0

answers

Answered
Import data from text file and use it on simulink
<http://www.mathworks.com/help/toolbox/simulink/slref/fromfile.html>

14 years ago | 0

Answered
Blob detection based on Difference of Gaussian (DoG) or Laplacian of Gaussian (LoG) operator
<http://www.google.com/search?q=blob+detection+matlab>

14 years ago | 0

| accepted

Load more