Answered
How to find the order of the power of A matrix?
Use isequal to compare matrices and you can directly calculate modulo by mod, you don't need to assign the values specifically -...

3 years ago | 0

| accepted

Answered
I need my code to output in both numerical form and symbolical form.
Define and substitute the values after obtaining the required result in symbolic form - syms phi theta psi mobile = 110.75;...

3 years ago | 1

| accepted

Answered
For loop only running once
The code is not 'printing' the result, it is 'storing' the result in the variable time. And with every iteration of the loop, th...

3 years ago | 0

Solved


Make an N-dimensional Multiplication Table
*INSTRUCTIONS* This is a multi-dimensional variant of the normal multiplication table used to teach elementary students multi...

3 years ago

Solved


Compute Khinchin's constant
Khinchin's constant K_0 = 2.684542001... (also written "Khintchine's constant") has the amazing property that it is the limiting...

3 years ago

Solved


Logic 2

3 years ago

Solved


Logic 12

3 years ago

Solved


Logic 5

3 years ago

Answered
Solve a group of Symbolic Equations
You need to specify which variables are you solving for - syms A B alpha beta % variable syms R1 R2 C1 C2 ...

3 years ago | 1

| accepted

Answered
Find logical and (&&) for string array
Use strcmp or isequal to compare strings str1 = "Left"; str2 = "Right"; if strcmp(str1,"Left") && strcmp(str2,"Right") z...

3 years ago | 1

Solved


An array is given. Find the unique elements of the array. [keep the sequence unchanged]
An array is given. Find the unique elements of the array. [keep the sequence unchanged] For example if input x=[2 ,4 , 9 ,2 ,...

3 years ago

Solved


A Binary Search
One way to locate a target value in a sorted array, is to use a binary search algorithm. Here, you test if the midpoint in the a...

3 years ago

Answered
Why real part of this complex matrix become Inf and NaN from function real(), how to make complex matrix become real part?
You are getting this result because you are trying to divide by 0 i.e. determinant of C. m1=16; m2=11; c1=6; c2=4; k1=15; ...

3 years ago | 0

Solved


Index of a Rational number
The set of real numbers are infinite. They are so many that real numbers can't even be enumerated. However, unlike real numbers ...

3 years ago

Solved


nth Rational Number
Return the nth rational number. This is the inverse to Problem 1471. Index of a Rational number The first ten positive rationa...

3 years ago

Answered
using find function and stor the filtered data in a Matrix
Assuming the ranges are [1,2), [2,3) ... f = [1.3; 1.4; 2.1; 2.5; 2.7; 2.8; 3.4]; H = [5;6;7;3;2;4;9]; arr = floor(f); [~,m]...

3 years ago | 1

| accepted

Solved


Distance between two GPS Coordinates
A problem that arises when performing geographically weighted regression is determining the distance between GPS coordinates. GI...

3 years ago

Solved


Full combinations
Given n input vectors x1, x2, …, xn, generate a p*n matrix y whose rows contain all element-wise combinations of the vectors x1,...

3 years ago

Solved


Perl 2: pop
This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab? ...

3 years ago

Solved


Be happy
check whether the given number is happy in b-base. * A happy number can be defined as a number which will yield 1 when it is ...

3 years ago

Solved


Perl 3: shift
This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab? ...

3 years ago

Solved


Non-zero bits in 10^n.
Given an integer that is a power of 10, find the number of non-zero bits, k, in its binary representation. For example: n = 1,...

3 years ago

Solved


Kaggle: Reverse Game of Life - Zoo of Stills and Oscillators
<http://www.kaggle.com/c/conway-s-reverse-game-of-life Kaggle's Conway's Reverse Game of Life> contest inspires this Reverse Lif...

3 years ago

Answered
Creating an array of partial sums of certain array
Here is an approach, however I am not sure how fast this will be for a large n y=[1 2 3 4 5 6]; n=numel(y); z=cell(1,n); for...

3 years ago | 0

| accepted

Answered
How can I get the exact result with this code?
The power to x was incorrect syms f(x) L = 1; f(x) = 5*(x.^(-1/3)); h = (1/L)*int(f(x), 0, L)

3 years ago | 1

| accepted

Solved


Yoonir - 03
Find the area of a seven-pointed star inscribed in a circle of radius r.

3 years ago

Answered
I need help with Symbolic Differentiation Error
You are over-writing the symboic variables, psi and theta by taking input from the user. Rename the variables which you will use...

3 years ago | 0

| accepted

Solved


The Yellowstone Permutation
The Yellowstone Permutation is a sequence of positive integers, defined by the following rules: No term is repeated. Given n t...

3 years ago

Answered
Not Enough Input Arguments
I have modified your code, does it give the output you want? M = eye(6); x = [5;2;4;1;3;6]; for i=5:-1:1 [c,s] = MATH635_HW3...

3 years ago | 0

Load more