해결됨

Create array of all Distances between two Sets of Points

This Challenge is a subsection of Martian Pranks based on Tim's efficient Distance calculation between sets of points. Given Po...

5달 전

해결됨

Hydrogens in a Saturated Hydrocarbon

Given (c) carbon atoms in a saturated hydrocarbon molecule (all single bonds), how many hydrogen atoms (h) are in the molecule?

5달 전

답변 있음

Sparse matrix calculate warning: Matrix is close to singular or badly scaled.

You don't have to correct any thing. The matrix is close to singular (the determinant close to zero) Matlab indicate that Re...

Sparse matrix calculate warning: Matrix is close to singular or badly scaled.

You don't have to correct any thing. The matrix is close to singular (the determinant close to zero) Matlab indicate that Re...

5달 전 | 0

답변 있음

How I use quiver to plot 3+2i

Just use: quiver(3,2,1) for any complex number c, use: quiver(real(c),imag(c),1)

How I use quiver to plot 3+2i

Just use: quiver(3,2,1) for any complex number c, use: quiver(real(c),imag(c),1)

5달 전 | 1

| 수락됨

해결됨

Return the largest number that is adjacent to a zero

This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

5달 전

해결됨

Convert Cylindrical Cooridinates into Spherical Coordinate

For Cylindrical coordinate point, rho, fie (degrees) and z. Convert these points in Spherical Cooridinate System and save result...

5달 전

해결됨

Number of 1s in the Binary Representation of a Number

*Description* Return the number of 1s in the (unsigned integer) binary representation of a number. This function should be ab...

5달 전

해결됨

Arrange vector in ascending order

Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

5달 전

해결됨

Find the longest sequence of 1's in a binary sequence.

Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

5달 전

답변 있음

Split and count unique string in cell array

A loop solution: C=unique(A);nc=length(C); B=char(A);nb=length(B); D=zeros(nc,1); for i=1:nc for j=1:nb if str...

Split and count unique string in cell array

A loop solution: C=unique(A);nc=length(C); B=char(A);nb=length(B); D=zeros(nc,1); for i=1:nc for j=1:nb if str...

5달 전 | 0

해결됨

Number of vertices of a hypercube

Return the number of vertices of a n-dimensional hypercube.

5달 전

답변 있음

Check if a vector and matrix are orthogonal (MATLAB)

See this :Low-density_parity-check_code Orthogonality mean 'mod 2=0'

Check if a vector and matrix are orthogonal (MATLAB)

See this :Low-density_parity-check_code Orthogonality mean 'mod 2=0'

5달 전 | 0

답변 있음

The meaning and function of codes on programming

size(permutataions,1) It just compute the number of ppossible permutations. randi([1 max_choice]) is a random choise the ge...

The meaning and function of codes on programming

size(permutataions,1) It just compute the number of ppossible permutations. randi([1 max_choice]) is a random choise the ge...

5달 전 | 1

| 수락됨

해결됨

Matlab Basics II - Free Fall

An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

5달 전

해결됨

Remove the positive integers.

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

5달 전

해결됨

Project Euler: Problem 5, Smallest multiple

2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder. What is the smalle...

5달 전

해결됨

Deleting an element in a matrix

For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

5달 전

해결됨

find the surface area of a cube

given cube side length x, find the surface area of the cube, set it equal to y

5달 전

해결됨

Append two matrix as shown below example

Append two matrix as shown below example A=[1 2; 3 4] and B=[5 6;7 8] Answer must be 1 2 5 6 3...

5달 전

해결됨

Negation the hard way

Write a function that has the following property: f(f(x)) = -x for any numeric array x. Note that there is no restriction on ...

5달 전

해결됨

N-Dimensional Array Slice

Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension. ...

5달 전

답변 있음

Array slice indexing?

Take for example: a=[1 2 3; 5 6 7; 8 9 12] and i=2 then a(i,end:-1:1) gives: the 2nd row in right to left order (the eleme...

Array slice indexing?

Take for example: a=[1 2 3; 5 6 7; 8 9 12] and i=2 then a(i,end:-1:1) gives: the 2nd row in right to left order (the eleme...

5달 전 | 0

답변 있음

My yellow led control doesn't work on my gui

Just change this two lines %set callback for h10 (yellow on) set (h11, 'Callback', 'yellow_led_control(h11, h12, h10, id_flag,...

My yellow led control doesn't work on my gui

Just change this two lines %set callback for h10 (yellow on) set (h11, 'Callback', 'yellow_led_control(h11, h12, h10, id_flag,...

5달 전 | 0

| 수락됨