統計
All
Feeds
回答済み
How do I create a logarithmic scale colormap or colorbar?
set(gca,'ColorScale','log') https://nl.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7-ColorSca...
How do I create a logarithmic scale colormap or colorbar?
set(gca,'ColorScale','log') https://nl.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7-ColorSca...
約1年 前 | 27
解決済み
Block average
Given a matrix, calculate the block average of each disjoint sub-matrix of the same size. Assume that the size of the matrix alo...
1年以上 前
送信済み
Conservative regridding
Interpolates/regrids the 1D (interval) or 2D (surface) data onto a finer grid so that the total/average is conserved
約3年 前 | ダウンロード 1 件 |
解決済み
Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...
4年以上 前
回答済み
How can I recursively process files in subdirectories using MATLAB?
It is high time Matlab updates some of the official answers, as many are outdated. This is an example, as of R2016b, no need fo...
How can I recursively process files in subdirectories using MATLAB?
It is high time Matlab updates some of the official answers, as many are outdated. This is an example, as of R2016b, no need fo...
5年弱 前 | 3
回答済み
Reducing Density in Geographical Data
You first have to get the indices of which elements are preserved. With those you can construct new elevation, and length vector...
Reducing Density in Geographical Data
You first have to get the indices of which elements are preserved. With those you can construct new elevation, and length vector...
約5年 前 | 0
回答済み
How can I change the colormap for each tab in a tabbed figure?
The code you gave didn't run on my PC because of a problem with viewshed. The following code runs and does not show the problem ...
How can I change the colormap for each tab in a tabbed figure?
The code you gave didn't run on my PC because of a problem with viewshed. The following code runs and does not show the problem ...
約5年 前 | 0
| 採用済み
回答済み
How to change the line width for fplot?
Starting in R2016a, you can specify the 'LineWidth' property the same way you do for plot. For example: >> fplot(x1,[0,2],'k','...
How to change the line width for fplot?
Starting in R2016a, you can specify the 'LineWidth' property the same way you do for plot. For example: >> fplot(x1,[0,2],'k','...
約6年 前 | 10
| 採用済み
解決済み
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
7年弱 前
質問
Fat and ugly lines in eps export
I have a high resolution map of the world. When I try to export it as an eps with print('-depsc','-painters', '-loose','tes...
9年弱 前 | 0 件の回答 | 0
0
回答回答済み
Ho to plot a pressure map?
Looks to me like you are looking for an interpolation function to move to a finer grid. See here for the 2D version: <http://mat...
Ho to plot a pressure map?
Looks to me like you are looking for an interpolation function to move to a finer grid. See here for the 2D version: <http://mat...
9年弱 前 | 0
質問
How to generate surface preserving probability density function from histogram
I have a histogram with non uniform bins. From this I would like to estimate a smooth probability density function(basically a...
9年以上 前 | 1 件の回答 | 0
1
回答質問
VPA behavior, workaround requested
Does anybody now a workaround for this behaviour of vpa?: syms a b c c=a+b; a=1; b=1; vpa(c) ans = a + b ...
9年以上 前 | 1 件の回答 | 0
1
回答回答済み
Any recommendation how to vectorize this double for loop?
A couple of things: 1. If size(MM(looper,:),1) is independent of looper (as you suggest?), you can simply precalculate it bef...
Any recommendation how to vectorize this double for loop?
A couple of things: 1. If size(MM(looper,:),1) is independent of looper (as you suggest?), you can simply precalculate it bef...
約10年 前 | 0
質問
Symbolic array pre-allocation
Symbolic array pre-allocation only allocates pointers as I understood it from reading the forum. This is causing a major slowdow...
約10年 前 | 1 件の回答 | 0
1
回答質問
Most populated range of floating point numbers in array
histc can be used on a floating point array to find the bin with the largest number of elements. However these bins are fixed, a...
10年以上 前 | 2 件の回答 | 0
2
回答回答済み
Elegant way to know in which iteration of for I am
This should do it: if (protocol_ID==1 || protocol_ID==4) && n_runs > N_categories( 1 ) .. elseif (protocol_ID==6 |...
Elegant way to know in which iteration of for I am
This should do it: if (protocol_ID==1 || protocol_ID==4) && n_runs > N_categories( 1 ) .. elseif (protocol_ID==6 |...
10年以上 前 | 0
回答済み
how to assign the pixel to clusters based on euclidean distance ??
<http://www.mathworks.nl/help/stats/kmeans.html>
how to assign the pixel to clusters based on euclidean distance ??
<http://www.mathworks.nl/help/stats/kmeans.html>
10年以上 前 | 0
回答済み
How to solve 3 equations with 3 unknowns using 'for' loop?
I guess you are meant to solve these equations by iteration? Something like this would do x=1;y=1;z=1; for l=1:30 ...
How to solve 3 equations with 3 unknowns using 'for' loop?
I guess you are meant to solve these equations by iteration? Something like this would do x=1;y=1;z=1; for l=1:30 ...
10年以上 前 | 0
| 採用済み
回答済み
Plot at the same figure
The problem are these lines: figure1 = figure('Color',[0 1 1]); axes1 = axes('Parent',figure1,'FontSize',12,'FontName','...
Plot at the same figure
The problem are these lines: figure1 = figure('Color',[0 1 1]); axes1 = axes('Parent',figure1,'FontSize',12,'FontName','...
10年以上 前 | 0
| 採用済み
回答済み
Problem to add greek chars as ticklabel
It does not seem supported, but there is a work around: <http://www.mathworks.com/matlabcentral/answers/102053-how-can-i-make...
Problem to add greek chars as ticklabel
It does not seem supported, but there is a work around: <http://www.mathworks.com/matlabcentral/answers/102053-how-can-i-make...
10年以上 前 | 1
| 採用済み
回答済み
Extra term in "min" function in while loop
I guess it is a remainder of some old code. It can be removed, it does nothing!
Extra term in "min" function in while loop
I guess it is a remainder of some old code. It can be removed, it does nothing!
10年以上 前 | 1
回答済み
How to extrapolate data from a matrix of x axis values and corresponding y axis values?
This is for a linear extrapolation: interp1(x,y,4,'linear','extrap') ans = 2.5000e+03
How to extrapolate data from a matrix of x axis values and corresponding y axis values?
This is for a linear extrapolation: interp1(x,y,4,'linear','extrap') ans = 2.5000e+03
10年以上 前 | 0
回答済み
How to plot a circle on top of my plotted image
See this answer <http://www.mathworks.com/matlabcentral/answers/98665-how-do-i-plot-a-circle-with-a-given-radius-and-center> ...
How to plot a circle on top of my plotted image
See this answer <http://www.mathworks.com/matlabcentral/answers/98665-how-do-i-plot-a-circle-with-a-given-radius-and-center> ...
10年以上 前 | 0
回答済み
3D matrix manipulation. FInd values of given positions
This should do it: sum(matrix2(matrix1~=0))
3D matrix manipulation. FInd values of given positions
This should do it: sum(matrix2(matrix1~=0))
10年以上 前 | 0
| 採用済み
回答済み
Input data from one array to another
The main problem with your code was the double for loop. Even if a match was found, for say j=50; it was overwritten in the seco...
Input data from one array to another
The main problem with your code was the double for loop. Even if a match was found, for say j=50; it was overwritten in the seco...
10年以上 前 | 0
| 採用済み
回答済み
what is the function of 'eval' ?
Eval can be used to run matlab commands which are not known in advance, but only at runtime. In your example eval executes the c...
what is the function of 'eval' ?
Eval can be used to run matlab commands which are not known in advance, but only at runtime. In your example eval executes the c...
10年以上 前 | 0
| 採用済み
回答済み
getting name of all functions i use in m file (or script)
<http://www.mathworks.nl/help/matlab/matlab_prog/identify-dependencies.html>
getting name of all functions i use in m file (or script)
<http://www.mathworks.nl/help/matlab/matlab_prog/identify-dependencies.html>
10年以上 前 | 0
回答済み
Matlab Cropping Plots to remove whitespace
On the fileexchange there are a lot of functions out there that can do this for you. I use for instance spaceplots <http://www.m...
Matlab Cropping Plots to remove whitespace
On the fileexchange there are a lot of functions out there that can do this for you. I use for instance spaceplots <http://www.m...
10年以上 前 | 0
| 採用済み