Question

In: Mechanical Engineering

Create a program using Matlab that can solve Three Dimensional Space; Vectors, Partial Derivatives or any...

Create a program using Matlab that can solve Three Dimensional Space; Vectors, Partial Derivatives or any of the topic in calculus 3; show 5 examples please thankyou!! just use matlab for the solution like the codes thankyou

Solutions

Expert Solution

2-d functions
:
>> [x,y]=meshgrid(-1:0.1:1,-1:0.1:1);
>> z=5*x.^2+3*y.^2;
>> contour(x,y,z);
>> prism;
>> mesh(x,y,z)
>> surf(x,y,z)
>> view([10 30])
>> view([0 90])

  

2D Fourier transform intensity

echo on

colormap(hsv);

x=zeros(32);

x(13:20,13:20)=ones(8);

mesh(x)

pause % strike a key

y=fft2(x);

z=real(sqrt(y.^2));

mesh(z)

pause

w=fftshift(z);

surf(w)

pause

contour(log(w+1))

prism

pause

plot(w(1:32,14:16))

title(’fft’)

xlabel(’frequency’)

ylabel(’modulus’)

grid

echo off

Create file alpha.dat . Then:
>> fid=fopen(’alpha.dat’,’r’);
>> a=fread(fid,’uchar’,0)+4;
>> fclose(fid);
>> fid=fopen(’beta.dat’,’w’);
>> fwrite(fid,a,’uchar’);
>> fclose(fid);
>> !cat beta.dat

x est = 7.0;

delta = 0.1;

while(delta > 1.0e-4)

x=x est-delta:delta/10:x est+delta;

fplot(’eqn’,[min(x) max(x)]);

grid;

disp(’mark position of root with mouse button’)
[x est,y est] = ginput(1)
delta = delta/10;
end


Related Solutions

This is a Matlab Question Create MATLAB PROGRAM that can solve First Order Linear Differential Equation...
This is a Matlab Question Create MATLAB PROGRAM that can solve First Order Linear Differential Equation ( 1 example contains condition and the other does not have condition). 1. ty′ + 2y = t^2 − t + 1, y(1)=12 The correct answer is y(t) = 1/4 t^2 − 1/3 t + 1/2 + 1/12t^2 2. (x-1) dy/dx + 2y = (x+1)^2 The correct answer is y = (x(x+1) / x-1 ) + C(x+1) / x-1 The correct answer is
using matlab Designing a program on ANY fractions Partial Show the two formals or figures in...
using matlab Designing a program on ANY fractions Partial Show the two formals or figures in time domin and z domin
Which of the following properties are vectors and which are scalars considering a three-dimensional space? Give...
Which of the following properties are vectors and which are scalars considering a three-dimensional space? Give a “typical” symbol and the S.I. units used to describe these properties, i.e. if I asked for mass density you would answer: ρ is a scalar in units g cm3 = 103 kg m3 ; maybe even state ρ = m V . a) force b) mass c) angular displacement d) energy e) linear acceleration f) the period of a pendulum g) work h)...
What is a vector space? Provide an example of a finite-dimensional vectors space and an infinite-...
What is a vector space? Provide an example of a finite-dimensional vectors space and an infinite- dimensional vector space.
Show that, in n-dimensional space, any n + 1 vectors are linearly dependent. HINT: Given n+1...
Show that, in n-dimensional space, any n + 1 vectors are linearly dependent. HINT: Given n+1 vectors, where each vector has n components, write out the equations that determine whether these vectors are linearly dependent or not. Show that these equations constitute a system of n linear homogeneous equations with n + 1 unknowns. What do you know about the possible solutions to such a system of equations?
solve any question about fourier series by using MATLAB
solve any question about fourier series by using MATLAB
Create a Matlab program that can evaluate Green Theorem
Create a Matlab program that can evaluate Green Theorem
Matlab project: Solve using Matlab three problems: One using the combination formula One using the permutation...
Matlab project: Solve using Matlab three problems: One using the combination formula One using the permutation of n objects formula One using the permutation of r objects out of n objects You can pick these problems from the textbook or you can make up your own questions.
** USING MATLAB TO PROGRAM The main objective of this lab is to create a game...
** USING MATLAB TO PROGRAM The main objective of this lab is to create a game that involves betting on the sum of two dice. The player will start out with some initial total amount of money. During each round, the player can bet some money that the sum of the two dice will be equal to a certain number. If the player wins the bet, that player adds the amount of the bet to his or her current total....
Write a MATLAB function function = pivGauss(.....) to solve linear equations using Gaussian Elimination with Partial...
Write a MATLAB function function = pivGauss(.....) to solve linear equations using Gaussian Elimination with Partial Pivoting. You'll need to employ Nested Loops. Thank you !
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT