已回答
How do you plot a surface in matlab?
There several tutorials that illustrate how to make a graph of f(x,y), here is simple example : [x,y]=meshgrid(-1:0.1:1); ...

10 years 前 | 0

| 已接受

已回答
Matrix for double pendulum not populating last column
This problem is sensitive to initial conditions, you can start by checking the equations, or values given to variables. In funct...

10 years 前 | 0

已回答
i want to find angle between two 3d dots in kinect skeleton
try to verify these relations : r=sqrt(x^2+y^2+z^2); phi=acos(z/r); % radian theta=acos(x/(r*cos(phi)); radian ...

10 years 前 | 0

已回答
compute the 2 dimensional (x,y) with respect to time
As long as there are three variables, you need to use : plot3(t,x,y); %.....

10 years 前 | 0

已回答
Replace jth zero in vector with j
try : x = [1 0 2 4 -3 0 3 0]; y=x; [a,b]=find(x==0); y(b)=b;

10 years 前 | 0

已回答
Soundsc and sound not Playing anything
It can be the range of the vector, try *sound(y/max(y),Fs)*.

10 years 前 | 0

已回答
Sir i am getting error :function isgray has been removed. Please suggest me which version of matlab i should use.
I think this function test an image of it is gray scale image, try to use an alternative way, using always logical answer, The g...

10 years 前 | 0

已回答
how to generate three independent sinusoidal signal in matlab?
sin waves with different frequencies : Fs=20; f1=2; f2=4; f3=9; t=0:1/Fs:10-1/Fs; y1=sin(2*pi*f1*t); y2=sin(2*pi...

10 years 前 | 0

| 已接受

已回答
Vector convergence in cartesian coordinates
There are 24 undefined variables *C1;G0;hMaz;hMpol;Alpha;theta;phi;EAj;EAi;EAk;Ku;Vol;P;C2;Is;P_hbar;P_Q;Ms;Nx;Nz;Ny;hx;hy;hz;*...

10 years 前 | 0

已回答
A script that writes all even numbers from 1 to 100
Here is a beginning using while, : N=100; n=1; c=1; while n<N if mod(n,2)==0 E(c)=n;c=c+1; end n=n+1; en...

10 years 前 | 0

已回答
Replacing part of a matrix with a matrix
you can try : A(1:2,1:2)=0;

10 years 前 | 2

| 已接受

已回答
What exactly is the "n-point DFT" that fft() computes?
N is the number of points used to calculate the fft, it does not increase physical resolution but adds more point to the spectru...

10 years 前 | 0

已回答
General Question of Matlab.
Maybe you need to to understand the structure of the problem before trying to solving as program, or you try to understand the p...

10 years 前 | 0

已回答
Plotting Gamma Distribution, please help?
It is correct, you just need to exchange pdf with X : plot(x,pdf);

10 years 前 | 1

已回答
How to generate a discrete square pulse, lets say N times?
You can either write the function or use built-in function, here is an example using 1000 samples : N=1e+3; Fs...

10 years 前 | 0

已回答
Problems with snr function
Generally the formula is SNR=20log10(std(signal)/std(noise)) , in your case you have : snr=20*log10(std(xn)/std(ns...

10 years 前 | 0

已回答
convert number to string but keep it the same as it is
You can achieve that command using transformation from matrix to cells, if M is your matrix : M=magic(10); N=siz...

10 years 前 | 0

已回答
Plotting 2-variable Function with integration using MatLab
The problem is in the function *int*, it is designed for symbolic calculation while your work with numerical one, if you have th...

10 years 前 | 0

已回答
Is there any difference between rand(n,1) and unifrnd(0, 1, n, 1)?
They both generate sample from uniform distribution, *unifrnd* offers a possibility to enter the parameters while with *rand* yo...

10 years 前 | 1

| 已接受

已回答
how to plot a 10*10 grid map and how to number the grid cells? (sample pic is attached here)
I have a model that i wrote already, try to compare it with Joseph's method. [X,Y]=meshgrid(1:11); figure; hold on; plot...

10 years 前 | 1

| 已接受

已回答
Help with Fourier transform fft
Generally fft is two sided , you just need to truncate it : F=f(1:floor(end/2));

10 years 前 | 1

已回答
Help with minimum of a matrix
As are you are concerned about the global mean, you truncate the Inf elements and compute the min: M(isinf(M))=[]; min...

10 years 前 | 0

已回答
axis changing when plotting points
One method to fix the issue is to place the axis command inside the loop, suppose the limits are : L=[xmin xmax ymin ym...

10 years 前 | 0

已回答
Random Variable with exponential distribution of Probablity Density Function
The beginning of the answer can be as the following : % first part alpha=2; % parameter N=400; % size...

10 years 前 | 1

已回答
Simple matlab code issue
The quantity (C')*B*inv(A)*(C).^1 is scalar, and B+C.^2 is not correct : B+(C*C').^2; is correct

10 years 前 | 0

已回答
How to plot trend lines of 2 FFT graphs which have very large data points?
One temporary solution is to downsample the two power spectra, this proposition is based on time-frequency uncertainty principle...

10 years 前 | 0

已回答
How to represent the value of X and Y Pixels in array of Two Dimensions using Matlab
The provided answer is correct, you only need some processing steps, the image contains white borders , you need to crop it usin...

10 years 前 | 0

| 已接受

已回答
problem with for and function inside other function
From your description , the error occurs when you calculate the integral of pxcos1 from 1 to 1.4, that is the quad function, you...

10 years 前 | 0

已回答
how to plot ellipsoid in 3d not in the center
For surface representation, you can use meshgrid to generate the ellipsoid with parameterization : a=5; b=3; c=1; [u,v]=...

10 years 前 | 1

加载更多