Answered
Matlab Error: Matrices must agree
hi, a1 is unknown, but check this solution , although the code technically correct , the solution is empty : %dbstop if ...

13 years ago | 0

Answered
Finding Minimum value of radius
hi Suman Koirla, try this : The Volume is given by : V=(1/3)*r²*h, and the surface A=pi*r*sqrt(r²+h²) for V=10 m^3, we ...

13 years ago | 0

| accepted

Answered
Not sure what to do on this question.
hi, try his basic sol : % SCRIPT x=0:0.1:10; fprintf(' SELECT A FUNCTION TO PLOT :\n case1 : cos(x) \n case(2) ...

13 years ago | 0

Answered
Play last third of a wav file
hi, try : sound(y(2/3:end,Fs); % with Fs the sampling frequency % EDITED ANSWER ok Walter is right the answer...

13 years ago | 0

| accepted

Answered
Kalman Filter wind speed estimation
hi james, You can use interpolation method to estimate the missing values from your data, Concerning the Kalman Filter, yo...

13 years ago | 0

Answered
RECTANGLE using MESHGRID in MATLAB
hi, try : x=0:0.01:1; % 1 meter y=x; % square then . [X,Y]=meshgrid(x,y); Z=X*Y; % square table figure, surf(Z), sh...

13 years ago | 0

Answered
I'm trying to write a program that calculates the standard deviation of an array without using sum() or std() and I'm having problems
hi, try : aberration_waves=[0.213 0.531 0.605 0.448 0.972 0.054 0.889 0.247 0.128 0.711]; N=numel(aberration_waves); ...

13 years ago | 0

| accepted

Answered
what's wrong with the code
modify, for i=1:n for j=1:n if (5<i<15 && 8<j<12 && j==i) d(i,j)=1; else d(i,j)=0; end end end

13 years ago | 0

Answered
How to do a MATLAB Assignment?
hi, Unless you are asked to put your programs in GUI, you dont need Graphical user interface : you start by creating your...

13 years ago | 0

Answered
Help with using IFFT to calculate radial distribution function g(r) ! PLEASE help
can you try "trapz" as example ? r=(0:0.1:2)*1e-9; % distance in NM rho=5e-3; % charge density maybe . K=1./(2*pi^2...

13 years ago | 0

Answered
how to convert cell to matrix
hi, try cell2mat : M=cell(4); M{1}=4; P=cell2mat(M),

13 years ago | 0

Answered
How to use low pass flter for time domine data
hi, you can use built-in functions "butter" and " filter" , example : Fs=8000; % SAMPLING FREQUENCY t=0:1/Fs:2; f1=500; ...

13 years ago | 0

| accepted

Answered
I want to simulate ECG signal using loop on MATLAB.
hi, I propose you use this function (Author : Floyd Harriott 2002) : <http://www.physionet.org/physiotools/matlab/ECGwaveG...

13 years ago | 0

| accepted

Answered
how do i calculate motion for x-ray images ?
hi Raisul, I am not specialist in 2D-Xray Motion, but i propose a way out : % Lets work with an example : Magnetic Resonan...

13 years ago | 0

Answered
Putting visual marker in an image
hi Con You can use 'gtext', and put the dot in a position you want , example : X=imread('circuit.tif'); imshow(X), g...

13 years ago | 0

Answered
Functions handle (product of functions)
hi, why dont you use one single function handle : >>G=@(fi) 2*sqrt(5/8)*atan(sqrt(45).*fi)*10.*(fi.^2) % This is X*H >...

13 years ago | 0

| accepted

Answered
Matlab turns scalar parameter into array when numerically integrating
hi Fabian I think the error( besied i do not own the "integral" function) is that your function returns a matrix , but integr...

13 years ago | 0

Answered
Add more nan values
hi try this standard version : % Given A = [5 5 5 5; 5 NaN 5 5; 5 5 5 5]; [N]=size(A); for x=2:N(1)-1 ...

13 years ago | 0

Answered
sum of a series
hi, what is Y[nT]? random variable? N=1000; a0=2.36; a1=4.56; a2=5.57; y=randn(N,1); v=zeros(N,1); v(1:2)=y(...

13 years ago | 1

Answered
How can I generate signals with in Maltab?
hi, 1)Concerning Wideband Gaussian signal, you can pick up a Generalized Gaussian Pulse: alpha=10; E0=1; Fs=100e+6; ...

13 years ago | 0

| accepted

Answered
Matrix is singular, RCOND=NAN
hi, The determinant of the matrix bC is close to zero, you have to alter bC .

13 years ago | 1

Answered
Why there is a modulation in case of frequency offset?
hi Alex, Your question is acceptable, you expect to visualize the Demodulated signal as the original, but the Doppler shift a...

13 years ago | 0

| accepted

Answered
imwrite plots not saving
hi, use the commande 'print' example , figure, plot(randn(100,1)); print(figure(1),'C:\users\.......\your_image.jpg'...

13 years ago | 0

Answered
RE:Resizing an Image
HI, try : % Given your image I I=imread('circuit.tif'); 1) Using imresize : X=imresize(I,0.5); 2)or try down...

13 years ago | 0

Question


Function for Generating bistochastic matrix ?
Bistochastic matrix P is matrix where the sum each column or each row is 1, and aslo for n>=0 P^n is also bistochastic, A...

13 years ago | 1 answer | 0

1

answer

Answered
matlab: Subscripted assignment dimension mismatch...i can understand why it is showing but cannot get a solution
hi, you have : i=0.2:0.2:0.8; % as your loop The length is 4, then initialize the matrix Pw as : Pw=zeros(4,3);...

13 years ago | 0

| accepted

Answered
how to make a 3d plot with x,y,z, coordinates and data (t)
hi , as you want to visualize t ( t as function of x and y t=F(x,y)) then i suggest this trick , i show it based on an exam...

13 years ago | 0

Answered
help me solve this transdental equation using matlab ?
try, this , Warning : it computationally heavy!!!! % This is Non linear system % lets take 2*vdc/n*pi=1 for simplificatio...

13 years ago | 0

Answered
how to make a 3d plot with x,y,z, coordinates and data (t)
hi, try plot3(x,y,t); scatter3(x,y,t,'r'); % z is constant !

13 years ago | 0

Answered
how to programm with matlab
hi brave, start with small tutorials in the web, then choose a book to read of Mathworks specialized in your field, for examp...

13 years ago | 0

Load more