Community Profile

# Sibi

### VIT

Last seen: 15 días ago Active since 2020

Research scholar at VIT

All

#### Content Feed

View by

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

más de 1 año ago | 1

| accepted

Smoothing a 2d matrix
x=randi(10,2,3); c = smooth(x(:)); y= reshape(c,height(x),width(x))

más de 1 año ago | 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

más de 1 año ago | 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); ...

más de 1 año ago | 0

extract a number from 1*1 cell
cell2mat(tbl2)

más de 1 año ago | 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...

más de 1 año ago | 0

| accepted

Compare strings of different size/length
try this,

más de 1 año ago | 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 ...

más de 1 año ago | 0

| accepted

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

más de 1 año ago | 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; ...

más de 1 año ago | 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) ...

más de 1 año ago | 1

| accepted

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

más de 1 año ago | 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; ...

más de 1 año ago | 2

| accepted

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))./(...

más de 1 año ago | 0

| accepted