統計
MATLAB Answers
0 質問
48 回答
ランク
of 154,257
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
回答済み
How to calculate different velocity zones
I believe the categorical function is what you ware looking for. Check categorical function and check 'Bin Numeric Data into Cat...
How to calculate different velocity zones
I believe the categorical function is what you ware looking for. Check categorical function and check 'Bin Numeric Data into Cat...
約7年 前 | 0
回答済み
Implementing a step response within for loop environment?
How about trying to introduce heaviside(x) function in the sig calculation? If certain condition is met, then apply the addition...
Implementing a step response within for loop environment?
How about trying to introduce heaviside(x) function in the sig calculation? If certain condition is met, then apply the addition...
約7年 前 | 0
回答済み
How to build a matrix like this
The following works, not the 'best' way... n = 5; A = [n:-1:1]'; for i = 2:n A(:,i) = A(:,i-1); A([1:i]...
How to build a matrix like this
The following works, not the 'best' way... n = 5; A = [n:-1:1]'; for i = 2:n A(:,i) = A(:,i-1); A([1:i]...
7年以上 前 | 0
回答済み
Simple simulation of stock price
In the loop, does this answer to your question? for i = 1:1000 S_1(i+1) = S_1(i)*(1+r*dt+sigma*wp*normrnd(0,1)); ...
Simple simulation of stock price
In the loop, does this answer to your question? for i = 1:1000 S_1(i+1) = S_1(i)*(1+r*dt+sigma*wp*normrnd(0,1)); ...
7年以上 前 | 0
回答済み
Please help: In an assignment A(I) = B, the number of elements in B and I must be the same.
depths = zeros(1,41); %it has 41 elements and P(j) is one element. % maybe you wanted to use depths(j)?
Please help: In an assignment A(I) = B, the number of elements in B and I must be the same.
depths = zeros(1,41); %it has 41 elements and P(j) is one element. % maybe you wanted to use depths(j)?
8年以上 前 | 0
回答済み
How to edit my scatter plot legend?
plot(linspace(1,5,21), Intact..., 'b*',linspace(6,10,21), D1b..., 'go',... linspace(11,15,21), D2b..., 'k^',linspace(16,20,21)...
How to edit my scatter plot legend?
plot(linspace(1,5,21), Intact..., 'b*',linspace(6,10,21), D1b..., 'go',... linspace(11,15,21), D2b..., 'k^',linspace(16,20,21)...
8年以上 前 | 0
回答済み
How to plot average monthly data from excel using matlab R2013a?
ydata = [jan feb mar apr may jun ... jul aug sep oct nov dec]; %it should work. %other options, make a matrix of 12 columns r...
How to plot average monthly data from excel using matlab R2013a?
ydata = [jan feb mar apr may jun ... jul aug sep oct nov dec]; %it should work. %other options, make a matrix of 12 columns r...
8年以上 前 | 0
| 採用済み
回答済み
Hi, please if I have too matrix like this how can I calculate the distance between them and thank you
distance = r-p % does this work?
Hi, please if I have too matrix like this how can I calculate the distance between them and thank you
distance = r-p % does this work?
8年以上 前 | 0
回答済み
how to set some column or row in matrix to another random matrix?
S_rand(selected_row, :) = A(selected_row, :); S_rand(:, selected_col) = A(:, selected_col);
how to set some column or row in matrix to another random matrix?
S_rand(selected_row, :) = A(selected_row, :); S_rand(:, selected_col) = A(:, selected_col);
8年以上 前 | 0
回答済み
Display Data From a Matrix or Table with Colour Scale
doc contourf %it shows filled contour
Display Data From a Matrix or Table with Colour Scale
doc contourf %it shows filled contour
8年以上 前 | 0
回答済み
How to make 2-D plot some points with Latitude, Longitude and Third value in Matlab?
help contour
How to make 2-D plot some points with Latitude, Longitude and Third value in Matlab?
help contour
8年以上 前 | 0
回答済み
How to remove duplicates from a matrix without using unique?
% use the function ismember for each column, and it would help doc ismember
How to remove duplicates from a matrix without using unique?
% use the function ismember for each column, and it would help doc ismember
8年以上 前 | 0
回答済み
hello, I have this graph shown below, I want to use it in my code for find (Y) value by giving (X) value, there is no equation can fit this curve, can you tell me the way for using this graph in my code please?
vq = interp1(x,v,xq,method) %help interp1
hello, I have this graph shown below, I want to use it in my code for find (Y) value by giving (X) value, there is no equation can fit this curve, can you tell me the way for using this graph in my code please?
vq = interp1(x,v,xq,method) %help interp1
8年以上 前 | 0
回答済み
How can i make a normal distribution plot of a dataset with 1000 numbers, that also shows the mean and variance?
%1 try the function pdf? see help for more description % hist is also a possible function for the 1000 data.
How can i make a normal distribution plot of a dataset with 1000 numbers, that also shows the mean and variance?
%1 try the function pdf? see help for more description % hist is also a possible function for the 1000 data.
8年以上 前 | 0
回答済み
Problem with importing data: specifier "dd" does not include the 31st day of the month
data = importdata('brue0001.dat');
Problem with importing data: specifier "dd" does not include the 31st day of the month
data = importdata('brue0001.dat');
8年以上 前 | 0
回答済み
please i need all iteration in one vector
inc = 120; accy(length(accy)-rem(length(accy),inc)+1:end) = []; accy_2D = reshape(accy, inc, (length(accy)-rem(length(accy),i...
please i need all iteration in one vector
inc = 120; accy(length(accy)-rem(length(accy),inc)+1:end) = []; accy_2D = reshape(accy, inc, (length(accy)-rem(length(accy),i...
8年以上 前 | 0
| 採用済み
回答済み
Runge Kutta 4th order, Error: Subscripted assignment dimension mismatch
%y(:,1) is the first column, and %[0.5,0,0,50] is a row vector. consider y(:,1)=[0.5,0,0,50]';
Runge Kutta 4th order, Error: Subscripted assignment dimension mismatch
%y(:,1) is the first column, and %[0.5,0,0,50] is a row vector. consider y(:,1)=[0.5,0,0,50]';
8年以上 前 | 0
| 採用済み
回答済み
How do i plot a line at a single desired point on the X-Axis?
%at point x0 = 6, vertical line x0 = 6; plot([x0 x0], [min(y), max(y)], 'r-'); %revise the y values to your desired values
How do i plot a line at a single desired point on the X-Axis?
%at point x0 = 6, vertical line x0 = 6; plot([x0 x0], [min(y), max(y)], 'r-'); %revise the y values to your desired values
8年以上 前 | 0
回答済み
it is showing not enough input arguments
%Remove the following lines from the code clc ; clear ; close a l l ;
it is showing not enough input arguments
%Remove the following lines from the code clc ; clear ; close a l l ;
8年以上 前 | 0
回答済み
how i can put the (-1) in binary matrix with condition ?
% is the last number in your A* equal to 0 instead? %the following code may work [rows cols] = size(A); A_diff = A(:,1:end-...
how i can put the (-1) in binary matrix with condition ?
% is the last number in your A* equal to 0 instead? %the following code may work [rows cols] = size(A); A_diff = A(:,1:end-...
8年以上 前 | 0
回答済み
multiple loopings in a program
a = input('Input the value of a: '); Range1 = [1 7]; str = strcat('Input the value of a again as a needs to be in the range f...
multiple loopings in a program
a = input('Input the value of a: '); Range1 = [1 7]; str = strcat('Input the value of a again as a needs to be in the range f...
8年以上 前 | 0
| 採用済み
回答済み
How can I upgrade the multi variable integration?
%see example of matlab, use double or triple trapz, F = X.^2 + Y.^2; I = trapz(y,trapz(x,F,2))
How can I upgrade the multi variable integration?
%see example of matlab, use double or triple trapz, F = X.^2 + Y.^2; I = trapz(y,trapz(x,F,2))
8年以上 前 | 0
| 採用済み
回答済み
How can I return indices for specific strings found within cells of a cell array?
doc regexp
How can I return indices for specific strings found within cells of a cell array?
doc regexp
8年以上 前 | 0
回答済み
How to increase the speed of this code?
% 1. use vectors instead of the for loop to calculate distance, example dist = sqrt(x.-xCenter).^2.+(y.-yCenter).^2.+(z.-zCent...
How to increase the speed of this code?
% 1. use vectors instead of the for loop to calculate distance, example dist = sqrt(x.-xCenter).^2.+(y.-yCenter).^2.+(z.-zCent...
8年以上 前 | 0
回答済み
How to vectorize the following for...loop?
% maybe make some changes to the following code could help, [rows cols] = size(ans); v1 = v(1:rows-1, 1:cols-1); v2 = v(...
How to vectorize the following for...loop?
% maybe make some changes to the following code could help, [rows cols] = size(ans); v1 = v(1:rows-1, 1:cols-1); v2 = v(...
8年以上 前 | 0
回答済み
Importing data from excel
%maybe the function 'size' is what you required. [rows cols] = size(A); for i = 1:rows for j = 1: cols ... end end
Importing data from excel
%maybe the function 'size' is what you required. [rows cols] = size(A); for i = 1:rows for j = 1: cols ... end end
8年以上 前 | 0
回答済み
plot 2 ( Stems / Histograms ) in the same axis
%1 use the 'hist' function to get the vertical axis for two arrays. %2 use the function 'bar' to plot
plot 2 ( Stems / Histograms ) in the same axis
%1 use the 'hist' function to get the vertical axis for two arrays. %2 use the function 'bar' to plot
8年以上 前 | 0