Solved


Find offset of given matrix element from first matrix element
Given matrix m and an element of that matrix, return the offset from its first element. e.g. m=[11 2 34; 40 51 6; 87 8 109] el...

4 years ago

Answered
How to find a corresponds value?
[maxPower,idx]=max(yourMatrix(:,1).*yourMatrix(:,2)); radAtMaxPower=yourMatrix(idx,3);

4 years ago | 0

| accepted

Answered
Need some help on a MATLAB homework assignment.
C=-50:10:150; F=(C*(9/5))+32; Table=[C',F'];%array table

4 years ago | 0

Answered
Which is the smallest natural number n to which it applies a(n)>10?
a(1)=1;a(2)=1; for k=3:1000 %pick something to overshoot or use while loop a(k)=a(k-1)+1/a(k-2); end n=find(a>10,1);%48!

4 years ago | 0

| accepted

Solved


Easy Sequences 43: Least Common Fibonacci Number
The Fibonacci sequence is a series whose elements are numbers starting with and , and subsequent Fibonacci numbers are defined...

4 years ago

Solved


Easy Sequences 50: Blocked Gaussian Integers
A Gaussian Integer is a complex number whose real and imaginary parts are both integers. A gaussian integer is said to be bloc...

4 years ago

Answered
rref( ) row echelon form MATLAB
A=[-1 2;4 -5]; b=[-3;6]; x=A\b;

4 years ago | 0

Solved


Easy Sequences 40: Quadratic Congruence
Quadratic Congruence is a modular equation of the form: . In this exercise you will be given a vector containing the coefficie...

4 years ago

Solved


Compute the largest number whose prime factors sum to n
This problem deals with a sequence whose tenth term is 36 because the prime factors of 36 (2, 2, 3, 3) sum to 10. The number 32 ...

4 years ago

Solved


Given the radius of a sphere r, output its volume V
A sphere has radius r. Determine its volume V.

4 years ago

Solved


Easy Sequences 47: Boxes with Prime Edges
This is related to problem "Easy Sequences 41: Boxes with Integer Edges". However, here we will be investigating a smaller-sized...

4 years ago

Answered
use "for loop" to create pattern
Why not just use repmat() instead of a for-loop? a=repmat(a,1,3);

4 years ago | 1

| accepted

Solved


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

4 years ago

Solved


Amazing circle of numbers 1 to n
For given natural number n, create amazing circle of numbers 1 to n without a repeat. This circle is that the sum of any two ad...

4 years ago

Solved


Siren frequency and Doppler effect.
The Doppler effect is described on OpenStax University Physics at https://openstax.org/books/university-physics-volume-1/pages/1...

4 years ago

Solved


Easy Sequences 38: Prime Number Delta
The Prime Number Theorem states that: where is the prime counting function (number of pri...

4 years ago

Solved


Easy Sequences 44: Finding the Smallest Number whose Cube is divisible by a Factorial
Given a integer , our goal is to find the smallest integer , such that divides . For example, for , , because , (since ), and ...

4 years ago

Solved


Easy Sequences 49: Prime Little Omega Function
For an integer , the prime little omega function, , is defined as the total number of distinct prime factors of . So, if , sinc...

4 years ago

Solved


Easy Sequences 48: Prime Big Omega of Factorial Sequence
For an integer , the prime big omega function, , is defined as the total number of prime factors of . So, if , since , therefor...

4 years ago

Answered
How do I encode numbers into a bit stream, ready to be modulated?
Changing to a bit-stream is not difficult. a='46+87';%your two numbers and operator b=dec2bin(double(a),8)';%convert ascii to ...

4 years ago | 0

Solved


List the cuban primes
The number 61 is a cuban prime because it is prime and the difference two cubes, 64 and 125. Write a function to list the cuba...

4 years ago

Solved


Create a function that adds one to a number
ex: x = 1 y = 2

4 years ago

Solved


create a function that cubes a number
example: x = 3 y = 27

4 years ago

Answered
Create a new vector
xn1=0.6; xs=0.9:0.3:30; fn=0.5; fs=0.3; r1=0.8; r2=0.4; xn=0; for i=1:lenght(xs) if (xs(i)+fs-re2)>=(xn(i)+fn/2)%have ...

4 years ago | 0

| accepted

Answered
How to retrieve the index of positions starting with a specific character in a cell array?
Simple loop does the trick. idxA=[];idxB=[];idxC=[]; for m=1:length(array2) switch array2{m}(1) case 'A' ...

4 years ago | 0

| accepted

Solved


A sequence of Ones
You are given number(s) with all digits - 1. Your answer will depend on the count of 1 in the given number, for example - x1...

4 years ago

Solved


Angle between two vectors
Given 2 pairs of _cartesian co-ordinates_, determine the angle between the 2 vectors formed by the _points_ and the _origin_. An...

4 years ago

Solved


Cody Problems in French : Trouvez la logique Pt.1
On rentre x = 4 et il en sort y = 160. Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'...

4 years ago

Solved


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

4 years ago

Solved


Number Power
Raise a number to itself.

4 years ago

Load more