Respondida
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);

alrededor de 13 años hace | 0

Respondida
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);

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 2

| aceptada

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

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

| aceptada

Respondida
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));

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

| aceptada

Respondida
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 ...

más de 13 años hace | 0

Respondida
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);...

más de 13 años hace | 0

Respondida
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)...

más de 13 años hace | 0

Respondida
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 ...

más de 13 años hace | 1

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 2

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 1

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 2

Respondida
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 ...

más de 13 años hace | 0

Respondida
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)

más de 13 años hace | 0

| aceptada

Respondida
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 ...

más de 13 años hace | 0

Respondida
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; ...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

| aceptada

Respondida
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...

más de 13 años hace | 0

Respondida
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...

más de 13 años hace | 0

Enviada


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

más de 13 años hace | 579 descargas |

5.0 / 5
Thumbnail

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

más de 13 años hace | 0

Cargar más