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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 1

| aceptada

Pregunta


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

más de 14 años hace | 2 respuestas | 1

2

respuestas

Respondida
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...

más de 14 años hace | 1

| aceptada

Respondida
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 ]...

más de 14 años hace | 0

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

más de 14 años hace | 2

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 1

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

más de 14 años hace | 0

Respondida
Define output of a callback function
doc assignin

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

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

más de 14 años hace | 0

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

más de 14 años hace | 0

Respondida
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)); ...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

| aceptada

Respondida
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 ...

más de 14 años hace | 0

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

más de 14 años hace | 0

| aceptada

Respondida
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...

más de 14 años hace | 0

Respondida
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) ...

más de 14 años hace | 1

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

más de 14 años hace | 0

Respondida
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...

más de 14 años hace | 0

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

más de 14 años hace | 3

| aceptada

Respondida
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...

más de 14 años hace | 1

| aceptada

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

más de 14 años hace | 3

| aceptada

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

más de 14 años hace | 0

| aceptada

Respondida
how to do differentiation?
doc diff

más de 14 años hace | 0

Pregunta


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...

más de 14 años hace | 0 respuestas | 0

0

respuestas

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

más de 14 años hace | 0

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

casi 15 años hace | 0

| aceptada

Cargar más