Réponse apportée
for loop
x = zeros(5,1); for i = 1:5 x(i) = i*2; end disp(x)

presque 15 ans il y a | 0

| A accepté

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

presque 15 ans il y a | 1

| A accepté

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

presque 15 ans il y a | 2 réponses | 1

2

réponses

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
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 ]...

presque 15 ans il y a | 0

Réponse apportée
How do I determine my MATLAB default character encoding scheme?
Another solution: feature('DefaultCharacterSet')

presque 15 ans il y a | 2

Réponse apportée
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...

presque 15 ans il y a | 0

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

presque 15 ans il y a | 1

Réponse apportée
How do I determine my MATLAB default character encoding scheme?
get_param(0, 'CharacterEncoding')

presque 15 ans il y a | 0

Réponse apportée
Define output of a callback function
doc assignin

presque 15 ans il y a | 0

Réponse apportée
Value swapping
x(x(:,2)==7,:) = fliplr(x(x(:,2)==7,:))

presque 15 ans il y a | 0

| A accepté

Réponse apportée
calling isosurface without specifying isovalue
When the isovalue is not defined Matlab determines it by calling isovalue function. type isovalue returns the following ...

presque 15 ans il y a | 0

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

presque 15 ans il y a | 0

Réponse apportée
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)); ...

presque 15 ans il y a | 1

| A accepté

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

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 15 ans il y a | 0

Réponse apportée
3 plane to array vectorization
doc squeeze Q=squeeze(Atr(1,1,:));

presque 15 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 0

Réponse apportée
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) ...

presque 15 ans il y a | 1

Réponse apportée
Fast calculation of short cumulative product vector
My suggestion: y3 = bsxfun(@power,a,1:len)

presque 15 ans il y a | 0

Réponse apportée
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...

presque 15 ans il y a | 0

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

presque 15 ans il y a | 3

| A accepté

Réponse apportée
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...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
closing a specified figure (if exist)
h = figure; if ishandle(h) close(h) end

presque 15 ans il y a | 3

| A accepté

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

presque 15 ans il y a | 0

| A accepté

Réponse apportée
how to do differentiation?
doc diff

presque 15 ans il y a | 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...

presque 15 ans il y a | 1 réponse | 0

0

réponse

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

presque 15 ans il y a | 0

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

presque 15 ans il y a | 0

| A accepté

Charger plus