Getting addicted to MATLAB Cody! Having a great time here since I've discovered Cody! :)

Professional Interest: Mathematics, Coding, Image processing using MATLAB, Power Electronics Converter Design

Solved

Calculate the average value of the elements in the array

Calculate the average value of the elements in the array

2 months ago

Solved

the average value of the elements

Calculate the average value of the elements in the array

2 months ago

Solved

Is A the inverse of B?

Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

2 months ago

Solved

Matlab Basics - Rounding II

Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

3 months ago

Solved

MATLAB Basic: rounding

Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8

3 months ago

Question

How can I use symbolic variables while solving problems of MATLAB Cody?

syms x x0 = 0.2; f = cosh(x)/ (cosh(x0)-cosh(x))^0.5 I = int(f,0,x0); I Can someone verify this code snippet? This code ...

4 months ago | 1 answer | 0

Solved

Back to basics 6 - Column Vector

Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

4 months ago

Solved

Is this triangle right-angled?

Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

4 months ago

Solved

Speed of car

Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

4 months ago

Solved

Unit Matrix

Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

4 months ago

Solved

Sum the 'edge' values of a matrix

Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...

4 months ago

Solved

Sum of diagonal of a square matrix

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

4 months ago

Solved

Area of an Isoceles Triangle

An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<https://imgur...

4 months ago