Réponse apportée
how do i clear a logical variable from workspace
Like any other variable a = true; clear a;

presque 13 ans il y a | 2

| A accepté

Réponse apportée
How do I clear up some memory?
UNIX systems do not return memory allocated to an application until the application exits. So it's not really a Matlab problem. ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Having a problem with MATLAB reconising variables
Your function has no idea of what's in your workspace. You need to pass these variables to the function if you want it to be abl...

presque 13 ans il y a | 0

Réponse apportée
mesh along a plane for a 3D vector
mesh(squeeze(1,:,:)) Please accept an answer if it helps you.

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Wrong answers given by MATLAB LU Factorization
Both answers are valid. A = [2/3,1 ; 1, 0] *[6, 3 ; 0, 1] B = [1 , 0 ; 1.5, 1] * [4 , 3 ; 0, -1.5] A == B

presque 13 ans il y a | 0

Réponse apportée
How do I differentiate between integer and floating point numbers in a double array?
is_integer = your_data == floor(your_data);

presque 13 ans il y a | 1

| A accepté

Réponse apportée
How to loop through a dataset and skip every other row?
If you indeed have a cell array of strings, this should work: your_data = cellfun(@(x) x(3:end),data9.Location,'uniformoutpu...

presque 13 ans il y a | 0

Réponse apportée
Sum over columns excluding rows
your_mat = flipud(cumsum(flipud(A')))'

presque 13 ans il y a | 0

| A accepté

Réponse apportée
sampling from a matrix
bla = rand(10); %Columns you sample: my_cols = [1 5 7]; %Extract them: sample = bla(:,my_cols); nCols = 1:size(...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Plotting data from table
doc plotyy

presque 13 ans il y a | 0

Réponse apportée
How to copy a plot
fH(1) = figure(1); fH(2) = figure(2); fH(3) = figure(3); figure(fH(1)); lH = plot(rand(10,2)); aH = ancestor(lH...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
I have x and y values, but, how can I draw the shape?
*doc convhull* nVal = 50; xx = 149.5 + rand(nVal,1).*(451.5-149.5); yy = 75.5 + rand(nVal,1).*(279.5-75.5); k = ...

presque 13 ans il y a | 2

Réponse apportée
plot multiple figures, each with subplots, within three layers of for loops
counter = 1; for ii = 1:5 for jj = 1:5 figure(counter) %bla counter = counter + 1...

presque 13 ans il y a | 0

Réponse apportée
Matrix manipulation such as subtraction
Faster: your_mat = repmat(A,numel(B),1)-repmat(B',1,numel(A));

presque 13 ans il y a | 0

Réponse apportée
Changing default 'g' color
I don't think it is a good idea to mess around with system defaults, especially if someone else is going to be using your machin...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
getting arguments of matlab when launched in background
A workaround that might make your life less complicated: make your script into a function and pass the output name as an argumen...

presque 13 ans il y a | 0

Réponse apportée
non zero rows per column
your_mat = ndgrid(1:size(A,1),1:size(A,2)); your_mat(A==0) = 0; your_mat(your_mat==0) = Inf; your_mat = sort(your_ma...

presque 13 ans il y a | 0

Réponse apportée
if i want to change each value 1 in a matrix to 0 how to do that?
b = a; b(b==1) = 0;

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to plot with plotconfusion into subplots?
You could always copy all the objects generated by _plotconfusion_ into the subplot axes: a=[1 1 0 1 0 0 1 0 1 0 1 1 0 0 1...

plus de 13 ans il y a | 2

Réponse apportée
xticks showing latitude and longitude
aH = axes; h = plot(aH,rand(10,1)); set(aH,'XTick',1:2:10); set(aH,'XTickLabel',[]); oneTick = ['Lookee up' ch...

plus de 13 ans il y a | 0

Réponse apportée
How can I plot This ?
What does "it ain't working" mean? x= [ 0.2 :0.1 : 0.6 ] ; y = 4 * (sqrt(1 - x.^2)) ./ (2*pi.*x); plot(x,y);

plus de 13 ans il y a | 0

Réponse apportée
Size of exported pdf with given font size
How about setting the size of the figure programatically: h = plot(rand(10,1)); xlabel('$x\ (\mathrm{m})$','Interpreter'...

plus de 13 ans il y a | 0

Réponse apportée
How does the hist function deal with data on the boundary between bins
From the documentation (edit histc): % N(k) will count the value X(i) if EDGES(k) <= X(i) < EDGES(k+1). The % las...

plus de 13 ans il y a | 1

Réponse apportée
Find string with options (*)
expr = 'Object\([0-9]*\)='; %Regular expression bla = 'asad ca Object(0)= asdas Object(k)=asdObject(1999)='; %string to s...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to store function parameters in a single variable
You could use a structure instead. PlotOpts.LineStyle = '-.'; PlotOpts.Color = [0 1 0]; PlotOpts.Marker = 's'; P...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
Information about NearestNeighbor function
As far as I understand, Matlab uses <http://www.qhull.org/ qhull> for delaunay triangulations. Is there a particular reason you ...

plus de 13 ans il y a | 0

Réponse apportée
Problem About 3D Plot Of Map
You are missing a '.': Longitude=[43.5308 43.5710 43.4535 43.4585 43.5795];

plus de 13 ans il y a | 0

Réponse apportée
Creating an array of probability distribution objects
You could use a cell array: for i=1:10 pdArray{i}=fitdist(errs, 'tlocationscale'); end

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can i represent elevation (z) in different colors using plot function?
That's not a straightforward thing to do; h = axes; x = (1:10)'; y = rand(1,10); minY = min(y); intY = max(y) -...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to make only x-axis invisible (y-axis stays visible)?
h = axes; plot(h,rand(10,1)); pos = get(h,'Position'); new_h = axes('Position',pos); linkaxes([h new_h],'y'); p...

plus de 13 ans il y a | 0

Charger plus