1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
amid [387]
3 years ago
10

Create a cell array, called A, with the following contents: a. Make a copy of A called B. (Nothing complicated: B = A is suffici

ent.) In B, change the ‘t’ in ‘Matlab’ to ‘T’ by accessing that element of the cell array. b. Make a character array C that contains ‘Simulink’, by extracting it from the cell array. c. Add a 3rd row to the matrix in B{2,1} with the numbers 4,7. (After this step, B{2,1} should be [3, 9; 8, 2; 4, 7].
Computers and Technology
1 answer:
Ivenika [448]3 years ago
7 0

Answer:

Following is created a cell array, called A with mentioned contents:

clc

clear all

close all

A={'Matlab' 'Simulink';[3,9;8,2] [2;8;5]};

B=A;

B{1,1}(3)='T'

C=A{1,2}

B{2,1}=[B{2,1};4,7]

Explanation:

Step-by-step explanation is as follows:

  1. Creation of A as required.         A={'Matlab' 'Simulink';[3,9;8,2] [2;8;5]};
  2. Making a copy of A called B.    B=A;    
  3. In B, change the ‘t’ in ‘Matlab’ to ‘T’ by accessing that element of the cell array.                                     B{1,1}(3)='T'
  4. Make a character array C that contains ‘Simulink’, by extracting it from the cell array.                             C=A{1,2}
  5. Add a 3rd row to the matrix in B{2,1} with the numbers 4,7. (After this step, B{2,1} should be [3, 9; 8, 2; 4, 7].

                                                            B{2,1}=[B{2,1};4,7]

You might be interested in
Gina is upgrading your computer with a new processor. She installed the processor into your motherboard and adds the cooling sys
tigry1 [53]

Answer:

The answer is option d.

8 0
3 years ago
Read 2 more answers
More registers appear to be a good thing, in terms of reducing the total number of memory accesses a program might require. Give
gulaghasi [49]

Answer:

Following is given the answer step by step:

Explanation:

First of all we will write a program using MARIE that will support the statement: Sum = (A + B) - (C + D). All the necessary comments are given in front of each statement:

Load    A                   # variable A will be loaded

Add     B                  # B will be added to A

Store   Temp1         # A + B will be stored in Temp1

Load    C                  # C will be loaded in memory

Add     D                 # D will be added to C

Store   Temp2         # C + D will ge stored in Temp2

Load    Temp1         # Temp1 will be loaded in the memory

Subt     Temp2         # Temp2(A + B) get subtracted from Temp1(A - B)

Store    Sum             # (A + B) - (C + D) will get stored in Sum.

We can see from above program that memory is accessed 9 times. While if C + D get executed first than memory accesses will be reduced to 7.

Above same program could be written using an architecture of 4 registers:

  • R1
  • R2
  • R3
  • R4

The program is as follows:

Load   R1 , A     #A  will be loaded into R1

Load   R2 , B    # B will be loaded into R2

Add     R1 , R2    # R2 gets added to R1 and the result is stored in R1 (A + B)

Load   R3 , C      # C loaded into R3

Load   R4 , D     # D loaded into R4

Add    R3 , R4   # Value in R4 gets added into R3 and R3 becomes (C + D)

                          #no memory accesses required for this operation

Subt   R1 , R4     #R4 (C + D) gets subtracted from R1 (A + B)

                         #no memory accesses required for this operation

Store  Sum        # The recent value will be stored into Sum

Here memory is accessed 5 times in total.

<h2>I hope it will help you!</h2>
8 0
3 years ago
4. What is a pentaprism? What job does it do in the camera?
Nadya [2.5K]
Pentaprism is a five sided prism with two silvered surfaces giving a non-stop deviation of all rays of light through 90 degress. Used in viewfinders of single-lens reflex cameras 
6 0
3 years ago
Read 2 more answers
When a private network uses a single public ip address, and each outgoing tcp packet uses a different port to allow for proper t
m_a_m_a [10]
The networking technology in use is NAT.
8 0
3 years ago
What two methods can be used to access and modify an existing program that is running on an iot device in cisco packet tracer? (
dsp73

Cisco Packet Tracer is tool used for network simulation and visualization program.

The two methods can be used to access and modify an existing program that is running on an IoT device in Cisco packet trace are the following:

1. Click on the device then select the Programming tab.

2. Go to the registration server and login. Then select the Editor tab.

3 0
3 years ago
Other questions:
  • What is the primary purpose for a screen saver in windows?
    8·1 answer
  • Assume a 8x1 multiplexer’s data inputs have the following present values: i0=0, i1=0, i2=0, i3=0, i4=0, i5=1, i6=0, i7=0. What s
    8·1 answer
  • The Active Directory Users and Computers tool can be used to:______.
    11·1 answer
  • jason works for a restaurant that serves only organic local produced what trend is this business following?
    6·2 answers
  • Taking an online class doesn't require any special skills.
    13·2 answers
  • Using the employment websites, search for part-time jobs that relate to the career fields you are interested in pursuing or to y
    12·2 answers
  • What is software piracy?
    11·1 answer
  • Electronic mail is a
    9·1 answer
  • Which term best describes these lines?
    7·1 answer
  • What stipulates that the source code of any software published under its license must be freely available.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!