Sibi
Followers: 0 Following: 0
Research scholar at VIT
Feeds
已回答
How can i merge arrays without certain value?
x=[0, 212]; y=[22, 0, 0, 233] ; z=[0, 0,33]; xn=length(x) ;yn=length(y);zn=length(z); l=max([xn yn zn]); o=[x zeros(1,l-xn)...
How can i merge arrays without certain value?
x=[0, 212]; y=[22, 0, 0, 233] ; z=[0, 0,33]; xn=length(x) ;yn=length(y);zn=length(z); l=max([xn yn zn]); o=[x zeros(1,l-xn)...
4 years 前 | 1
| 已接受
已回答
Smoothing a 2d matrix
x=randi(10,2,3); c = smooth(x(:)); y= reshape(c,height(x),width(x))
Smoothing a 2d matrix
x=randi(10,2,3); c = smooth(x(:)); y= reshape(c,height(x),width(x))
4 years 前 | 0
已回答
Syntax for Physics Equation
x=0:10; %% for x from 0 to 10 T=1;m=1;rho=1;A=1;m=1;v=1;D=1; a_x=(T/m)-((D*rho*A)/(2*m))*v*(x).^2
Syntax for Physics Equation
x=0:10; %% for x from 0 to 10 T=1;m=1;rho=1;A=1;m=1;v=1;D=1; a_x=(T/m)-((D*rho*A)/(2*m))*v*(x).^2
4 years 前 | 0
已回答
i got a error in median
X is in table,thats why its not working. try this . Xtest=xlsread("Q3Data_TE.xlsx"); X=Xtest(1:501,1:2); [n,p] = size(X); ...
i got a error in median
X is in table,thats why its not working. try this . Xtest=xlsread("Q3Data_TE.xlsx"); X=Xtest(1:501,1:2); [n,p] = size(X); ...
4 years 前 | 0
已回答
how to calculate the probability of an event with monte carlo simulation
mycode() function mycode() n=1000; x=zeros(n,1); y(1)=1.5 ; y(2)=1.5 ; for i= 1:n for t= 3:100 y(t)=0.6*y(t-1)+0.4...
how to calculate the probability of an event with monte carlo simulation
mycode() function mycode() n=1000; x=zeros(n,1); y(1)=1.5 ; y(2)=1.5 ; for i= 1:n for t= 3:100 y(t)=0.6*y(t-1)+0.4...
4 years 前 | 0
| 已接受
已回答
How to replace the elements of a Matrix with the elements of a vector
A = [1, 2, 4, 7, 11, 16, 22, 29, 37, 46]; delta = A(2:end)-A(1:end-1); delta(length(delta)+1) = min(delta); matrice = [0 1 0 ...
How to replace the elements of a Matrix with the elements of a vector
A = [1, 2, 4, 7, 11, 16, 22, 29, 37, 46]; delta = A(2:end)-A(1:end-1); delta(length(delta)+1) = min(delta); matrice = [0 1 0 ...
4 years 前 | 0
| 已接受
已回答
While loop not working the way I thought
i = 1; % Initial parking spot number n = 30; % Number of parking spots spot = zeros(1,n); % 0 means spot is open, ...
While loop not working the way I thought
i = 1; % Initial parking spot number n = 30; % Number of parking spots spot = zeros(1,n); % 0 means spot is open, ...
4 years 前 | 0
已回答
How to store values in a matrix to plot later?
Try this , you should not multiply the infected population to sucesptible population dS_dt = -f*S - S*u - S*v + S*p; ...
How to store values in a matrix to plot later?
Try this , you should not multiply the infected population to sucesptible population dS_dt = -f*S - S*u - S*v + S*p; ...
4 years 前 | 0
已回答
How to make this plot?
d=DATA{:,1};D=DATA{:,2}; min_year=year(min(d)); max_year=year(max(d)); A=zeros(12,max_year-min_year+1); for k=1:length(d) ...
How to make this plot?
d=DATA{:,1};D=DATA{:,2}; min_year=year(min(d)); max_year=year(max(d)); A=zeros(12,max_year-min_year+1); for k=1:length(d) ...
4 years 前 | 1
| 已接受
已回答
why is my matlab code doesn't give the right answer
Try this (edited) hold off sumvec1 = [];sum = 0; for n = 10:100 width = ((3 - 0)/n) ; for c = 0:n base1 = ...
why is my matlab code doesn't give the right answer
Try this (edited) hold off sumvec1 = [];sum = 0; for n = 10:100 width = ((3 - 0)/n) ; for c = 0:n base1 = ...
4 years 前 | 0
已回答
convert white color in image to red color
k is the image(RGB) array j=k(:,:,1); l=k(:,:,2); m=k(:,:,3); l((j>=40))=0; m(j>=40)=0; k(:,:,1)=j;k(:,:,2)=l;k(:,:,3)=m; ...
convert white color in image to red color
k is the image(RGB) array j=k(:,:,1); l=k(:,:,2); m=k(:,:,3); l((j>=40))=0; m(j>=40)=0; k(:,:,1)=j;k(:,:,2)=l;k(:,:,3)=m; ...
4 years 前 | 2
| 已接受
已回答
finding solutions in matlab within interval for multiple variables
W_g = 500; W_t = 1000; delta_x = 60; g = 32.2; r_i = 6:0.3:9; r_o = 12:0.3:15; V_g_c = sqrt((2*W_t*delta_x*g.*(r_o.^2))./(...
finding solutions in matlab within interval for multiple variables
W_g = 500; W_t = 1000; delta_x = 60; g = 32.2; r_i = 6:0.3:9; r_o = 12:0.3:15; V_g_c = sqrt((2*W_t*delta_x*g.*(r_o.^2))./(...
4 years 前 | 0
| 已接受
已回答
Variables in a Matrix unable to be called
clc;clear all;cellNum=10; a = 10; %Width of slab (cm) D =0.3733; %Diffusion coeffecient (cm) sigA =0.0158; %Absorbption cross...
Variables in a Matrix unable to be called
clc;clear all;cellNum=10; a = 10; %Width of slab (cm) D =0.3733; %Diffusion coeffecient (cm) sigA =0.0158; %Absorbption cross...
4 years 前 | 0
已回答
can anyone help me solve these two questions please?
1) F=(x<0)*(-2*x)+(x<=2)*(x>=0)*(x*(x-2))+(x>2)*(log(x-1)); 2) Y=sum(fibonacci(1:10));
can anyone help me solve these two questions please?
1) F=(x<0)*(-2*x)+(x<=2)*(x>=0)*(x*(x-2))+(x>2)*(log(x-1)); 2) Y=sum(fibonacci(1:10));
4 years 前 | 1