Can you please help me with this question. Much appreciated. So I have a sample code, but we need to change the code in a way that fits the problem.
Can you please help me with this question. Much appreciated. So I have a sample code,...
CAN YOU PLEASE CHECK WHATS WRONG? function[F]=func(t,h) global Atank Ahole kOne kTwo g rho %F=zeros(2,1) %NL=y(1) %NG=y(2) F=(kOne+kTwo*cos(2*pi*t/24)-rho*Ahole*sqrt(2*g*h))/(rho*Atank); close all clear all %clear all %close all global Atank Ahole kOne kTwo g rho Atank = 3.13;% Atank value Ahole =0.06; %Ahole value kOne = 300; % K1 value kTwo = 200; % K2 value g = 9.81; % Gravity rho = 1000; % rho value t0=0; tf=150; %range of time %Initial value h0_2=h(1); h0_1=h(2); h0_0=h(3); n=input('Enter the number of steps:');...
Would appreciate some help with this, please post the code as well as some plots, thank you. FOUR- Matlab Assume the following equations of motion for a system: mLO cos 0 - m,L0 sin0+ kx = F, sin ot (mm m,L m2L cos0 + m,gL sin 0 L cos 0F sin ot For mm2 1 kg, k=1 N/m, L= 1m, o = 1 rad/s, fo-1 N, g=10m/s2, Solve the EOM using Matlab. Play with the initial conditions - try several...
Can you help me with this question please? For the code, please do it on MATLAB. Thanks 7. Bonus [3+3+4pts] Before answering this question, read the Google page rank article on Pi- azza in the 'General Resources' section. The Google page rank algorithm has a lot to do with the eigenvector corresponding to the largest eigenvalue of a so-called stochastic matrix, which describes the links between websites.2 Stochastic matrices have non-negative entries and each column sums to1, and one can...
Help me!! Please solve (1) and (2). And I desperately want to know how to solve (2) by using MATLAB. Please teach me Matlab code in detail. a rectangular shape Aluminum block (L=10mm, D=3mm) has well insulated top and bottom. The left surface has thermal boundary condition, and the right surface has convection boundary condition. * the surface temperature Ts=100℃, the ambient air temperature Ta=20℃, heat transfer coefficient h=120 W/(m^2*K) * thermal conductivity of Aluminum = 220 W/m*K, density of...
PLEASE DO NOT REPOST THE ANSWER THAT ANOTHER TUTOR POSTED. THAT ANSWER IS WRONG. PLEASE I NEED HELP, THANK YOU Transient Conduction 1. (10 pts) The corner of a rectangular object experiences convection on its left and top sides, as shown below. Initially, the object experiences no heat generation and has a steady uniform temperature of Ti. Suddenly, at t 0, a chemical reaction takes place throughout the volume of the material, which causes heat generation (q"). Using the energy...
I have all of the answers to this can someone just actually explain this matlab code and the results to me so i can get a better understanding? b) (c) and (d) %% Matlab code %% clc; close all; clear all; format long; f=@(t,y)y*(1-y); y(1)=0.01; %%%% Exact solution [t1 y1]=ode45(f,[0 9],y(1)); figure; plot(t1,y1,'*'); hold on % Eular therom M=[32 64 128]; T=9; fprintf(' M Max error \n' ); for n=1:length(M) k=T/M(n); t=0:k:T; for h=1:length(t)-1 y(h+1)=y(h)+k*f(t(h),y(h)); end plot(t,y); hold on %%%...
Hi I need help understanding this matlab code. Can you add comments or at least state what the lines in this code are doing. Thanks! close all; clear all;clc; t=1:0.025:5; desired=5*sin(2*3.*t); noise=5*sin(2*50*3.*t); refer=5*sin(2*50*3.*t+ 3/20); primary=desired+noise; subplot(4,1,1); plot(t,desired); ylabel('desired'); subplot(4,1,2); plot(t,refer); ylabel('refer'); subplot(4,1,3); plot(t,primary); ylabel('primary'); order=2; mu=0.005; n=length(primary) delayed=zeros(1,order); adap=zeros(1,order); cancelled=zeros(1,n); for k=1:n, delayed(1)=refer(k); y=delayed*adap'; cancelled(k)=primary(k)-y; adap = adap + 2*mu*cancelled(k) .* delayed; delayed(2:order)=delayed(1:order-1); end subplot(4,1,4); plot(t,cancelled); ylabel('cancelled');
2. A nuclear fuel rod with diameter of D=40 mm and length L=1m, has properties of k=1 W/mK, c=1600J/kg-K, and p=400 kg/m² (a)Heat is generated uniformly in the rod with q'"' = 2 x 106 W/m. The rod is first cooled in oil with constant temperature To= 400 K and average heat transfer coefficient h=50 W/m2K. Under steady state, determine the surface temperature of the rod Ts. (10 pts) (b)Now the heat generation in the rod is stopped, where q"'...
2. A nuclear fuel rod with diameter of D=40 mm and length L=1m, has properties of k=1 W/mK, c=1600J/kg-K, and p=400 kg/m² (a)Heat is generated uniformly in the rod with q'"' = 2 x 106 W/m. The rod is first cooled in oil with constant temperature To= 400 K and average heat transfer coefficient h=50 W/m2K. Under steady state, determine the surface temperature of the rod Ts. (10 pts) (b)Now the heat generation in the rod is stopped, where q"'...
l missed an important information about block. So I upload again my question... please solve (3) and (4). I f I use a program to solve it, please teach me the name of program and the method. please teach me in detail. thank you :) a rectangular shape Aluminum block(L=10mm, D=3mm) has well insulated top and bottom. The left surface has thermal boundary condition, and the right surface has convection boundary condition. * the surface temperature Ts=100℃, the ambient air...