Solved

UICBioE240 problem 1.1

Remove the middle row from a matrix, assuming # of rows is odd. So if A = [ 1 2 3; 4 5 6; 7 8 9] the...

11 hours ago

Solved

UICBioE240 problem 1.7

Find the other two angles of a right triangle given the two of the sides. So if A = [1 1] B = [45 45]

11 hours ago

Solved

UICBioE240 problem 1.6

Find the tangent line of a right triangle given the two of the sides. So if A = [1 1] B = sqrt(2)

11 hours ago

Solved

UICBioE240 problem 1.9

Swap the first and last columns of a matrix. So if A = [12 4 7; 5 1 4]; B = [7 4 12; 4 1 5]; ...

11 hours ago

Solved

UICBioE240 problem 1.12

The mathematical quantities e^x, ln x, and log x are calculated in Matlab using the expressions exp(x), log(x), and log10(x), re...

11 hours ago

Solved

UICBioE240 problem 1.17

In the expression (2+5i), how does MATLAB read the expressions A = 2+5i B = 2+5*i C = both are okay Write capital letter a...

11 hours ago

Solved

UICBioE240 problem 1.18

exp(pi/5*i) and exp(pi/5i). Is there any difference in result? Write yes or no as a string.

11 hours ago

Solved

UICBioE240 2.1

This will be useful later in the course, in conjunction to clc and clear all, what is the command to close all figure windows th...

11 hours ago

Solved

UICBioE240 2.10

Given a vector of numbers, give the difference between the maximum and minimum values.

11 hours ago

Solved

Display negative numbers

Given array,x, display all the negative numbers and display output as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

11 hours ago

Solved

Create a constant offset.

Add a constant offset to an array. Example a = [1 3 5 9] offset = 2 y = [3 5 7 11]

11 hours ago

Solved

Determine the roots of a cubic equation

Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

11 hours ago

Solved

Roots of a quadratic equation.

Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

11 hours ago

Answered

How to pass a parent function variable to a child function inside a for loop

function ParentFunction(x,y,z) for i in 1:100 [output] = InnerFunction(x(i), y, z); % you can call ...

How to pass a parent function variable to a child function inside a for loop

function ParentFunction(x,y,z) for i in 1:100 [output] = InnerFunction(x(i), y, z); % you can call ...

1 day ago | 0

| accepted

Answered

How to make a loop through each row?

Make C a cell array for i = 1:size(A,1) C{i} = A(i, B(i,:) == 0); end

How to make a loop through each row?

Make C a cell array for i = 1:size(A,1) C{i} = A(i, B(i,:) == 0); end

1 day ago | 0

Answered

Write a user defined function to implement the following mathematical function :

function y = f(x) if x>0&&x<90 y=cosd(x); elseif x>90&&x<180 y=sind(x); else y=tand(x); end

Write a user defined function to implement the following mathematical function :

function y = f(x) if x>0&&x<90 y=cosd(x); elseif x>90&&x<180 y=sind(x); else y=tand(x); end

1 day ago | 0

Answered

Recursive function to reverse a vector

function w=reversal(v) if length(v)==1 w= v; else w= [v(end),reversal(v(1:end-1))]; end

Recursive function to reverse a vector

function w=reversal(v) if length(v)==1 w= v; else w= [v(end),reversal(v(1:end-1))]; end

1 day ago | 0

Solved

Optimal Asymmetric Encryption Padding decoding of message for RSA Cryptography

EME-OAEP decoding by reversing the Feistel network using previously determined mask generation function (MGF1) and SHA-1 hashing...

2 days ago

Solved

Optimal Asymmetric Encryption Padding of message for RSA Cryptography

EME-OAEP encoding of input message using a Feistel network with SHA-1 hashing within the mask generation function (MGF1) (see pr...

2 days ago

Answered

How can I plot a function i canĀ“t define before calculating it?

fplot(sum);

How can I plot a function i canĀ“t define before calculating it?

fplot(sum);

3 days ago | 0

| accepted

Solved

Mask Generation Function (MGF1) for PKCS #1 Standard utilizing Optimal Asymmetric Encryption Padding for RSA Cryptography

Create Mask Generation Function (MGF1) from PKCS #1 v2.2 standard (B.2.1 page 50) at below link. Input will be character array (...

3 days ago

Solved

Create State Array for initiating SHA-3-224 Hash

Create binary represented state array (as the initial input to the sponge function (f)) from any length character array (N) with...

3 days ago