Answered
How to find angle between 2 3D vectors?
hi, is it atan or cos^-1 (acos) because the scalat product is : V.U=||U||.||V||.cos(U^V);

12 years ago | 0

Answered
How can I plot multiple 2D contour plots on a single 3D plot?
You can use surf function as this example : [x,y]=meshgrid(-1:0.1:1); z=cos(x)+sin(y); figure,surfc(x,y,z);

12 years ago | 0

Answered
Find consecutive values in a vector that are above a threshold
hi you can find function with multiple output that show the indices : v=1:10; [r,c]=find(r>5); c represents the indice...

12 years ago | 0

Answered
how do i reverse a vector
hi, To reverse a vector try the function ' wrev' , here is an example : r=wrev(1:4) If you to control the degree of r...

13 years ago | 2

| accepted

Answered
how to change the images into 3d
try surf, here is example : I=im2double(imread('circuit.tif')); surf(I); shading interp

13 years ago | 0

Answered
surface plasmon field scans an optical fiber field
hi Naema, I tried the code, but i can not see the result because the data is missing , we do not have the folder : K:\inve...

13 years ago | 0

| accepted

Answered
Attempted to access y(2); index out of bounds because numel(y)=1
hi y's length must >2 : try : H=sir_model(t,rand(2,1));

13 years ago | 0

Answered
Distribution graph velocity : how to make simple paraboloid of revolution?
hi, i think your method works for this type of problems, try : N=40; % Discretization Vmax=20; % 20m/s x...

13 years ago | 0

| accepted

Answered
Distribution graph velocity : how to make simple paraboloid of revolution?
hi here is an example before staring to answer the problem : the veolcity is defined as : V(r)= Vmax*(1-r²/R²), R is the ...

13 years ago | 0

Answered
convert Vector into matrix ?
hi, here is the best solution without using loops : N=32; A=1:N; B=repmat(A,N,1); A2=(0:N-1)'; B2=repmat(A2,1,N);...

13 years ago | 0

Answered
convert Vector into matrix ?
hi, there are other alternatives , : try : N=32; A=1:N; A2=0:N-1; A2=A2'; B=repmat(A,N,1); for x=1:N B(:,x)...

13 years ago | 0

Answered
convert Vector into matrix ?
hi Alex This is not conversion but you are adding new elements to the original vector : If you have a vector of size Mx1 ...

13 years ago | 1

| accepted

Answered
How to evaluate dirac function in matlab?
hi The dirac function accepts only one argument (at least for earlier versions than yours) however, if you do not have the s...

13 years ago | 0

Answered
How to zoom in/out on an axis programmatically
hi, There is a function "zoom" with the following options : zoom on zoom off zoom out zoom reset zoom xon zoo...

13 years ago | 2

| accepted

Answered
Adaptive vs Non Adaptive Filters
hi, i think that : The adaptive filter is usually linked to dynamic systems , the time is involved in the equations, so the f...

13 years ago | 0

Answered
How to time shift a signal
hi, try : clear all; close all; clc; fc=30e3; for n=1:3 tc = gauspuls('cutoff',fc,0.4,[],-40); t = -tc : 1e-7 : tc; y...

13 years ago | 1

Answered
Numerical Integration of Equally Spaced Data
hi David, I think using trapz integrator with the x/t axis gives good result, in the mean wile try to interpolate your data t...

13 years ago | 0

| accepted

Answered
How can I change symbolic displays to decimal displays?
hi, Maria, If you want to display decimal ( floating point) numbers try : >>format long % or format short If you wa...

13 years ago | 2

Answered
how to provide video (Heigh x Width x frames)
hi Ren, i think you have to explain a little more your situation, are you working on existing Video or image sequences ? or ...

13 years ago | 0

Answered
how to create a series of changes over the loop variable and can assign a value to it
try : n=1:30; A=n; for r=1:length(n)-1 B(r)=A(r+1)+A(r); end plot(A), hold on, plot(B)

13 years ago | 0

| accepted

Answered
Equation of a constrained circle
hi try to verify this initiation : the first circle is defined by : a=37;b=-7;r=38; We are looking for new circle ...

13 years ago | 0

Answered
How to make multiple sinc functions?
hi, Try the code provided by Image analyst, or try also this version : % different positions for peaks x = -5:.01:5; ...

13 years ago | 0

Answered
How to creat a sparse matrix?
hi, i think you have to transform your matrix from Unsigned integer 8 to double, try : G=sparse(im2double(a)); % or si...

13 years ago | 0

Answered
Calculating autocorrelation on time series data
hi Sajeewa, try : c=xcorr(distance,'biased'); % biased estimate

13 years ago | 0

Answered
Solving Second Order Differential Equation !
hi, The damped oscillation can be obtained by changing the sign of the constant d : d=0.271;

13 years ago | 0

| accepted

Answered
How do I detremine the directions of maximum radiation and generate a plot of the normalised radiation intensity?
hi Rama, The radiation pattern can be computed in two regions, Near Field and Far field, Here is version i made for la...

13 years ago | 0

| accepted

Answered
how i make testing even and odd signals ?
hi, The signals are causal, they all start at [t=0,Inf] because we multiply them by Heaviside function, unless you consider t...

13 years ago | 0

Answered
Subscript indices must either be real positive integers or logicals.
hi Isabel You obtained that error because the variable position corresponds to the Numberical maximums not the Index or 'posi...

13 years ago | 0

Submitted


Dual Frequency, Touch-Tone
Touch-Tone :Frequency analysis with FFT.

13 years ago | 1 download |

5.0 / 5
Thumbnail

Answered
"if condition not worked"
hi, The cylist just answered , anyway you need "AND" Boolean operator : if (Vmin(:,:) < V(:,:)) && (V(:,:) < Ma(:,:)) ...

13 years ago | 0

Load more