Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
I need help with MATLAB
% Initial Conditions
I = [150; 400; 400];
% Semi diameters
a = I(1)^(-1/2);
b = I(2)^(-1/2);
c = I(3)^(-1/2);
% Unit Vectors
x = linspace(0, 0.15);
yz = linspace(0, 0.06);
ellipsoid(0,0,0,a,b,c)
hold on
plot3(x, 0, 0)
plot3(0, yz, 0)
plot3(0, 0, yz)
hold off
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 3 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- The MATLAB code f=inline('x^3 - x^2 -18'); df=inline('3*x^2 - 2*x'); ea=100; count=0; xi=0.5; while (ea>.01); count = count + 1; xil = xi - f(xi)/df(xi); ea = 100*abs((xil-xi)/xi1); disp([count xi1,xi, ea]); xi=xil; end finds the root for Choices f(x)=x*x*x-x^2 -18 =0 f(x)=x^3 -x^2 -18 =0 f(x)=3 *x^2 - 2*x =0 Nonearrow_forwardNeed help in Matlab. How do I modify this program to produce eye shapes like the pink picture using scaling, rotating and translating? Thank you! figure(1) x(1:2,1)=[1;0]; plot(x(1), x(2),'*'); grid on; hold on; axis([-15 15 -15 15]); k=1; Inc=1; for j=1:Inc:360; x(1:2,k+1)=[cosd(Inc) -sind(Inc);sind(Inc) cosd(Inc)]*x(1:2,k); plot(x(1,k+1), x(2,k+1),'^'); k=k+1; %for j=1:Inc:360; %x(1:2,k+1)=[cosd(Inc) -sind(Inc);sind(Inc) cosd(Inc)]*x(1:2,k); %plot(x(1,k+1), x(2,k+1),'^'); %k=k+1; %pause(); end for k=1:Inc:360; y1(1:2,k)=[1.5 0;0 3]*x(1:2,k); plot(y1(1,k),y1(2,k),'^') %for k=1:Inc:360; %y1(1:2,k)=[1.5 0;0 3]*x(1:2,k); %plot(y1(1,k),y1(2,k),'^') %pause(0.1); end for k=1:Inc:360; y2(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[7;5]; plot(y2(1,k),y2(2,k),'^') %for k=1:Inc:360; %y2(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[7;5]; %plot(y2(1,k),y2(2,k),'^') %pause(0.1); end for k=1:Inc:360; y3(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[-7;5]; plot(y3(1,k),y3(2,k),'^') %for k=1:Inc:360; %y3(1:2,k)=[3 0;0 1.5]*x(1:2,k)+[-7;5];…arrow_forwardWrite a Matlab code to determine Which values occur exactly three times in the input vector x? e.g. if x= [12522783313888] then, y= [2 3]arrow_forward
- I need help with MATLAB programming. The following code graphs a ellipsoid and a line. I need to create a line that is perpendicular to the H line and tangent to the ellipsoid. I also need to plot it in the graph. Can you help me with that? % Initial Conditionsw = 3;beta = deg2rad(45);I = [150; 400; 400]; w_NU = w*[cos(beta); 0; -sin(beta)]H_NU = [I(1)*w_NU(1); I(2)*w_NU(2); I(3)*w_NU(3)]T = (0.5)*dot(w_NU,H_NU);scal_c = sqrt(2*T); a = I(1)^(-1/2) * scal_cb = I(2)^(-1/2) * scal_cc = I(3)^(-1/2) * scal_c figure;[x, y, z] = ellipsoid(0, 0, 0, a, b, c);h2 = surf(x, y, z,'FaceColor', [0.8500 0.3250 0.0980]);hold on % Plotting Angular Momentum vectorplot3([0 (H_NU(1)/200)], [0 0], [0 (H_NU(3)/200)], 'k', 'Linewidth', 2) text(1.7, 0, -4.5, '$$\bar{H}$$', 'Interpreter', 'latex', 'Color', 'k', 'FontSize',14);quiver3(H_NU(1)/200, 0, H_NU(3)/200, 0.01, 0, -0.01, 'k', 'LineWidth', 8); alpha(h2, 0.5); view(0, 0);zlim([-5 5]);hold offarrow_forwardWrite the python syntax for centered differences of all interior points of a 1D field F, and forward and backward differences on the boundaries. Use vectorized notation and assume that the grid spacing is dxarrow_forwardI am trying to find 4 parameters as shown in the image. I started the MATLAB code but I don't have an idea of how the find the parameters. Can you help me find the four parameters for each i. The following is my code: clc;clear all; i = 1:50;theta = zeros(size(i));lambda_hat = [1/sqrt(3); 1/sqrt(3); 1/saqrt(3)]; for i = 1:50 theta(i) = pi + (10^-6)*randn(1); end i = 1:50;semilogy(i,theta)arrow_forward
- Good day! Can you please help me code this in MATLAB? Because I am getting an error when i try it specially in the part of I=[zeros(1,5) 1 zeros (1,10)] . Thank you so much.arrow_forwardIn MATLABarrow_forwardWrite Matlab code to plot the function 2"sin (x). Given x = 0:0.01:2*pi Provide plot screenshot.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education