Solved

Column Removal

Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; ...

10 months ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10 months ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 months ago

Solved

Finding sum of even numbers in a vector.

Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

10 months ago

Problem

Finding sum of even numbers in a vector.

Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

10 months ago | 2 | 38 solvers

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

10 months ago

Solved

Rescale Scores

Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...

10 months ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

10 months ago

Solved

Find the Best Hotels

Given three input variables: * |hotels| - a list of hotel names * |ratings| - their ratings in a city * |cutoff| - the rat...

10 months ago

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

10 months ago

Solved

Calculate BMI

Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

10 months ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

10 months ago

Solved

Calculate a Damped Sinusoid

The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

10 months ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

11 months ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

11 months ago

Solved

Convert from Fahrenheit to Celsius

Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

11 months ago

Solved

Calculate Amount of Cake Frosting

Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

11 months ago

Answered

How can I generate a random number that is negative or positive and between two other values?

>> randi([-2,2],3,3) will give the desired output. Thanks for pointing out my mistake @ Walter Roberson .

How can I generate a random number that is negative or positive and between two other values?

>> randi([-2,2],3,3) will give the desired output. Thanks for pointing out my mistake @ Walter Roberson .

1 year ago | 0

Answered

MATLAB crashing from remote desktop

I updated my display drivers. And now i am able to use MATLAB in remote desktop connection. Well that worked for me.

MATLAB crashing from remote desktop

I updated my display drivers. And now i am able to use MATLAB in remote desktop connection. Well that worked for me.

1 year ago | 0

| accepted

Question

MATLAB crashing from remote desktop

I am trying to use MATLAB from a remote desktop connection. And it is crashing every time. I even reinstalled the whole program...

1 year ago | 2 answers | 0

Question

How to do a 3D plot of this loop. I have tried the following.

clc; clear all; close all; fc = 1*10^6; % Carrier frequency c = 3*10^8; % Speed of light WL = c / fc; % wavele...

1 year ago | 1 answer | 0

Answered

caesar cyphor encryption problem .

function coded = caesar(str,n) num1 = double(str); %Converting string to double to make the defined shifts for i = 1 : len...

caesar cyphor encryption problem .

function coded = caesar(str,n) num1 = double(str); %Converting string to double to make the defined shifts for i = 1 : len...

1 year ago | 0

Answered

Basic Shift Cipher Decryption Algorithm HELP!

function coded = caesar(str,n) num1 = double(str); %Converting string to double to make the defined shifts for i = 1 : l...

Basic Shift Cipher Decryption Algorithm HELP!

function coded = caesar(str,n) num1 = double(str); %Converting string to double to make the defined shifts for i = 1 : l...

1 year ago | 0