GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

When using the direct allocation method, a cost accountant w…

When using the direct allocation method, a cost accountant would ________.

Read Details

clc;clear;str =[‘S’, ‘A’, ‘I’, ‘R’, ‘A’];x=length(str);img =…

clc;clear;str =[‘S’, ‘A’, ‘I’, ‘R’, ‘A’];x=length(str);img = uint8(zeros(x,x,3));img(:,:,1)=max(str) + min(str);img(:,:,2)=sum(str);img(:,:,3)=mean(str);for i=1:2    fprintf(‘%g ‘, img(i+i,i,:));    i=i+1;    fprintf(‘\n’);end

Read Details

In the following program, how many pixels in the image ‘pix’…

In the following program, how many pixels in the image ‘pix’ are colored black ([0 0 0]).  clc; clear;pix = zeros(5, 5, 3);pix(:,:,1)=300;for ii = 5:-1:1   for jj = 1:1:5-ii+1       pix(ii, jj, 1) = uint8(-99);       pix(ii, jj, 2) = uint8(0.0);       pix(ii, jj, 3) = uint8(0);   endend

Read Details

Write a program that creates an image (newimg) to highlight…

Write a program that creates an image (newimg) to highlight the differences between the two images img1, and img2.  img1=imread(‘image1.jpg’);img2=imread(‘image2.jpg’); Assume both image1.jpg, and image2.jpg has same row and column dimensions The newly created image (newimg) will be of the same size, with all pixels of the white color [255,255,255] initially. In the newimg the pixels which have different values in img1, and img2 will be converted to green color [0,255,0], and all other pixels will be converted to red color [255,0,0]. Note: you cannot use imshowpair() in this program

Read Details

John’s Gospel emphasizes love for one another as the great n…

John’s Gospel emphasizes love for one another as the great new commandment of Jesus and as the mark of his followers. True or False.

Read Details

clc; clear;vec = [7 1 5;8 2 3];newvec = [];newvec = [newvec…

clc; clear;vec = [7 1 5;8 2 3];newvec = [];newvec = [newvec find(vec < 7)];fprintf('%d ',newvec);for ii = 1:3    fprintf('\n');    newvec(find(newvec == max(newvec))) = [];    fprintf('%d ',newvec);end

Read Details

Identify and correct all the mistakes in the following code…

Identify and correct all the mistakes in the following code snippet that combines two sorted vectors of 5 numbers each into 1 sorted vector in ascending order (small to large). The code continually takes the smaller number from each vector and places that value into the new vector. You cannot add whole new lines of code. To write your response, mention the line number followed by the incorrect code in the line and then the correct code. For example, Line 2: for ii=1:1:5 should be for ii=2:1:10 (this is just an example!). (You cannot add whole new lines of code!) clc ;clear ; v1 = sort ( input (‘Enter a vector of 5 values : ‘)); v2 = sort ( input (‘Enter a vector of 5 values : ‘)); v3 = []; index1 = 1; index2 = 2; for ii =1:1:5     if index2 > 5 || ( index1 = v2( index2 ) )         v3 = ( v3 v1( index1 ) );         index1 = index1 + 1;     else          v3 = [ v3 v2( index1 ) ];          index2 = index2 + 1;     end end disp (v3 );

Read Details

A 25.0 kg child is swinging with a maximum angular displacem…

A 25.0 kg child is swinging with a maximum angular displacement of 18.0° on 3.97 m long ropes. At t = 0, the child is at the bottom of their swing. At a much later time, t = 20 s, the child is again at the bottom of their swing. What is the period (in s) of the swinging child?  

Read Details

OUTPUT 1: Which line do you read? 

OUTPUT 1: Which line do you read? 

Read Details

A client is admitted to the intensive care unit (ICU) from t…

A client is admitted to the intensive care unit (ICU) from the Emergency Department (ED) with a C5 fracture sustained in a motorcycle accident. Which assessment would take priority?

Read Details

Posts pagination

Newer posts 1 … 46,656 46,657 46,658 46,659 46,660 … 68,987 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top