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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 2

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 2

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 2

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

Gesendet


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

fast 13 Jahre vor | 2 Downloads |

5.0 / 5
Thumbnail

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

fast 13 Jahre vor | 0

Mehr laden