Feeds
답변 있음
logical operation on a varable x
Is this what you are looking for? for j = 1:20 if j==1 || j==20, continue; end your_code_goes_here end This...
logical operation on a varable x
Is this what you are looking for? for j = 1:20 if j==1 || j==20, continue; end your_code_goes_here end This...
9년 초과 전 | 0
답변 있음
How to plot 4D graph ?
You can use scatter3. To that end, you can create a matrix containing in each row the coordinates of each point and the value of...
How to plot 4D graph ?
You can use scatter3. To that end, you can create a matrix containing in each row the coordinates of each point and the value of...
9년 초과 전 | 0
답변 있음
Plotting 4D with 3 vectors and 1 matrix
You could use "patch" since the surface will hide the interior points. You can create a matrix containing the coordinates of eac...
Plotting 4D with 3 vectors and 1 matrix
You could use "patch" since the surface will hide the interior points. You can create a matrix containing the coordinates of eac...
9년 초과 전 | 0
답변 있음
Simultaneously inverting many matrices
In my experience, using cells is rather slow. Since your matrices are 2x2, then you could simple arrange them in a 3D array, wit...
Simultaneously inverting many matrices
In my experience, using cells is rather slow. Since your matrices are 2x2, then you could simple arrange them in a 3D array, wit...
9년 초과 전 | 1
답변 있음
How to solve system of nonlinear equations (A-x1)*x2=B?
Notice that (A-x)*y=B (I changed the names of the variables for simplicity) can be written component-wise as (Ai-xi)*yj = Bij, w...
How to solve system of nonlinear equations (A-x1)*x2=B?
Notice that (A-x)*y=B (I changed the names of the variables for simplicity) can be written component-wise as (Ai-xi)*yj = Bij, w...
9년 초과 전 | 0
답변 있음
How can I calculate very large matrix and store the values?
I guess one option would be to reduce the size of your data using clustering such as K-means or Gaussian mixtures, and replace a...
How can I calculate very large matrix and store the values?
I guess one option would be to reduce the size of your data using clustering such as K-means or Gaussian mixtures, and replace a...
거의 10년 전 | 0
답변 있음
int8(3) vs int(3)
At least in Matlab 2015, the function "int" is related to filters (in the filtstates package) or integration (in the symbolic pa...
int8(3) vs int(3)
At least in Matlab 2015, the function "int" is related to filters (in the filtstates package) or integration (in the symbolic pa...
거의 10년 전 | 2
| 수락됨
답변 있음
Unexpected phase displacement in FFT of a pure sinewave.
Hi Alberto, I think your problem is due to your choice of t. Suppose that your frequency is 50Hz. If you choose t=0:.00...
Unexpected phase displacement in FFT of a pure sinewave.
Hi Alberto, I think your problem is due to your choice of t. Suppose that your frequency is 50Hz. If you choose t=0:.00...
거의 10년 전 | 0
| 수락됨
제출됨
zoom_wheel(hfig,options)
Zoom in and out using the wheel in a rather practical manner
거의 10년 전 | 다운로드 수: 1 |
답변 있음
how can I draw a line knowing just the midpoint and the angle?
You can do this midpoint=[a,b]; % This defines the midpoint. You should give a and b some value. lineangle=c; % This defines...
how can I draw a line knowing just the midpoint and the angle?
You can do this midpoint=[a,b]; % This defines the midpoint. You should give a and b some value. lineangle=c; % This defines...
거의 10년 전 | 0
| 수락됨
답변 있음
Solving an Equation using Newton-Raphson Method
Are the functions polynomials as the example you mentioned? If they are, assume that the order of the polynomial is N (in you...
Solving an Equation using Newton-Raphson Method
Are the functions polynomials as the example you mentioned? If they are, assume that the order of the polynomial is N (in you...
거의 10년 전 | 0
답변 있음
How to impove the performence of this code?
As far as I can see, there is a problem in the code. Wheneven the condition strcmp(alldata(i,1),alldatafel(j,1)) && strcmp(...
How to impove the performence of this code?
As far as I can see, there is a problem in the code. Wheneven the condition strcmp(alldata(i,1),alldatafel(j,1)) && strcmp(...
대략 10년 전 | 1
답변 있음
plot two figures with same colorscale
If I understood correctly, you want the colour to vary according to the value of "z". But the problem is that plot3 takes only o...
plot two figures with same colorscale
If I understood correctly, you want the colour to vary according to the value of "z". But the problem is that plot3 takes only o...
10년 초과 전 | 0
답변 있음
How do I write a function with multiple out puts and inputs with varying times?
The problem is in the equation. The constant for the charge of the capacitor is R*C. Therefore, instead of writing Vc = V*(1-...
How do I write a function with multiple out puts and inputs with varying times?
The problem is in the equation. The constant for the charge of the capacitor is R*C. Therefore, instead of writing Vc = V*(1-...
10년 초과 전 | 0
| 수락됨
답변 있음
How to change the color of a specific sub-bar in a 2-D bar graph
You can do that by plotting each bar separately. For example, suppose that data is a matrix of 31 x 3 and that the colors for th...
How to change the color of a specific sub-bar in a 2-D bar graph
You can do that by plotting each bar separately. For example, suppose that data is a matrix of 31 x 3 and that the colors for th...
10년 초과 전 | 1
| 수락됨
답변 있음
Taking the mean of rows in a structure array
You can do the following: nmfinal=mean(cell2mat(squeeze(struct2cell(nm.data))'))'; You might need to take some precautio...
Taking the mean of rows in a structure array
You can do the following: nmfinal=mean(cell2mat(squeeze(struct2cell(nm.data))'))'; You might need to take some precautio...
10년 초과 전 | 0
답변 있음
How to check if a 3d matrix has any 2D submatrix with non zero elements?
You can just do [any(any(a(:,:,1)>0)),any(any(a(:,:,2)>0))] or just shorter nonzero2D=@(a,k)any(any(a(:,:,k)>0)) ...
How to check if a 3d matrix has any 2D submatrix with non zero elements?
You can just do [any(any(a(:,:,1)>0)),any(any(a(:,:,2)>0))] or just shorter nonzero2D=@(a,k)any(any(a(:,:,k)>0)) ...
10년 초과 전 | 0
답변 있음
Extracting data from lines in a plot
Just in case, you could also provide a contextual menu by doing the following hmenu=uicontextmenu; uimenu(hmenu,'Label','M...
Extracting data from lines in a plot
Just in case, you could also provide a contextual menu by doing the following hmenu=uicontextmenu; uimenu(hmenu,'Label','M...
10년 초과 전 | 0
답변 있음
Extracting data from lines in a plot
Have you tried using the command text()? Suppose that the tip of one of the lines is in (a,b). Then you can just do text(a,b...
Extracting data from lines in a plot
Have you tried using the command text()? Suppose that the tip of one of the lines is in (a,b). Then you can just do text(a,b...
10년 초과 전 | 0
답변 있음
How to compare two signal
The comparison can be done in several different ways. Suppose that X is the original signal and that XR is its reconstruction. Y...
How to compare two signal
The comparison can be done in several different ways. Suppose that X is the original signal and that XR is its reconstruction. Y...
10년 초과 전 | 1
| 수락됨
답변 있음
Plot a 3d-plane in MATLAB??
This solution is based on patch y=-2:.01:2; z=4-y.^2; numy=length(y); % Constructing the vertices V=zeros(numy,3)...
Plot a 3d-plane in MATLAB??
This solution is based on patch y=-2:.01:2; z=4-y.^2; numy=length(y); % Constructing the vertices V=zeros(numy,3)...
10년 초과 전 | 0
| 수락됨
답변 있음
Making a Square Wave Gradually
Each section is being played for one second because you are setting that in the line y(1 + timeDomain + (((k+1)/2)-1)*fs) = ...
Making a Square Wave Gradually
Each section is being played for one second because you are setting that in the line y(1 + timeDomain + (((k+1)/2)-1)*fs) = ...
10년 초과 전 | 0
| 수락됨
답변 있음
multi-variable looping problem
for a=1000:100:20000 ia=floor(a/100)-9; for b=100:10:200 ib=floor(b/10)-9; for c=.2:.01:.3 ic...
multi-variable looping problem
for a=1000:100:20000 ia=floor(a/100)-9; for b=100:10:200 ib=floor(b/10)-9; for c=.2:.01:.3 ic...
거의 11년 전 | 0
| 수락됨
답변 있음
How to find inverse of a self written function?
You can do the following sqrtllrh=fminsearch(@(sqrtllr)(cdf_func(sqrtllr.^)-h)^2,1); llrh=sqrtllrh^2; The explanation...
How to find inverse of a self written function?
You can do the following sqrtllrh=fminsearch(@(sqrtllr)(cdf_func(sqrtllr.^)-h)^2,1); llrh=sqrtllrh^2; The explanation...
거의 11년 전 | 0
답변 있음
Create plot with orthonormal axis
Maybe you can solve this by setting the axes property 'DataAspectRatio' to a specific value. For example: set(gca,'DataAspe...
Create plot with orthonormal axis
Maybe you can solve this by setting the axes property 'DataAspectRatio' to a specific value. For example: set(gca,'DataAspe...
거의 11년 전 | 1
| 수락됨
제출됨
3D Gaussian ellipses constant probability curves
Construct data points of ellipsoids depicting contour curves of 3-dimensional Gaussian distributions
거의 11년 전 | 다운로드 수: 1 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/submissions/46333/versions/1/screenshot.jpg)
제출됨
Gaussian ellipses constant probability curves
Construct data points of ellipses representing contour curves of bivariate Gaussian distributions.
거의 11년 전 | 다운로드 수: 1 |
![Thumbnail](/matlabcentral/mlc-downloads/downloads/submissions/46324/versions/1/screenshot.jpg)
답변 있음
Labels on the contour have too many digits
You could use [C,h]=contour(...); texth=clabel(C,h); texth is a vector that contains the handles of all labels. To ge...
Labels on the contour have too many digits
You could use [C,h]=contour(...); texth=clabel(C,h); texth is a vector that contains the handles of all labels. To ge...
11년 초과 전 | 0
답변 있음
Help needed on plotting!
When you push the GUI pushbutton, you can read the labels of the columns of the data into a cell array and then create the check...
Help needed on plotting!
When you push the GUI pushbutton, you can read the labels of the columns of the data into a cell array and then create the check...
11년 초과 전 | 0
답변 있음
More sophisticated code than a for loop with i is large
Please notice that in the "scatter matrix" that you showed as an example there are elements that are repeated, and the structure...
More sophisticated code than a for loop with i is large
Please notice that in the "scatter matrix" that you showed as an example there are elements that are repeated, and the structure...
11년 초과 전 | 0