해결됨

Simulate one complete step in the Biham–Middleton–Levine traffic model

The <http://en.wikipedia.org/wiki/Biham%E2%80%93Middleton%E2%80%93Levine_traffic_model Biham–Middleton–Levine traffic model> is ...

약 1년 전

답변 있음

saving real roots in a vector; "solve" gives me weird results

The code below will solve your problem as stated. In the general case with other parameters it may not be robust. You may need...

saving real roots in a vector; "solve" gives me weird results

The code below will solve your problem as stated. In the general case with other parameters it may not be robust. You may need...

약 1년 전 | 0

| 수락됨

제출됨

Curvature of a 2D or 3D curve

Calculates the local radius of curvature as well as the cumulative arc length and the curvature vector along a 1D curve in 2D or...

약 1년 전 | 다운로드 수: 60 |

답변 있음

How to find the arclength and radius of curvature for a set of 3D data points?

I was inspired by your question to write a functon that calculates the arc length and curvature of a 1D curve in 2D or 3D space....

How to find the arclength and radius of curvature for a set of 3D data points?

I was inspired by your question to write a functon that calculates the arc length and curvature of a 1D curve in 2D or 3D space....

약 1년 전 | 2

| 수락됨

해결됨

Find the stride of the longest skip sequence

We define a _skip sequence_ as a regularly-spaced list of integers such as might be generated by MATLAB's <http://www.mathworks....

1년 이상 전

해결됨

Integer Sequence - II : New Fibonacci

Crack the following Integer Sequence. (Hints : It has been obtained from original Fibonacci Sequence and all the terms are also ...

1년 이상 전

해결됨

Is X a Fibonacci Matrix?

In honor of Cleve's new blog and post: <http://blogs.mathworks.com/cleve/2012/06/03/fibonacci-matrices/> Is X a Fibonacci ...

1년 이상 전

해결됨

Sum the Infinite Series

Given that 0 < x and x < 2*pi where x is in radians, write a function [c,s] = infinite_series(x); that returns with the...

1년 이상 전

답변 있음

'For ' loop for every day for one minut fequency sea level data

Your problem seems to be the selection of data to calculate min and max values. The code below should help you on your way. Con...

'For ' loop for every day for one minut fequency sea level data

Your problem seems to be the selection of data to calculate min and max values. The code below should help you on your way. Con...

1년 이상 전 | 1

| 수락됨

해결됨

Five steps to enlightenment

This problem asks you to identify valid variations of the famous <https://en.wikipedia.org/wiki/Sum_and_Product_Puzzle sum and p...

1년 이상 전

답변 있음

Curve fitting with an integral involved

function theta = Gil data = [ 0.5 1 1.1 0.83 1.6 0.74 2.2 0.55 2.5 ...

Curve fitting with an integral involved

function theta = Gil data = [ 0.5 1 1.1 0.83 1.6 0.74 2.2 0.55 2.5 ...

1년 이상 전 | 3

| 수락됨

답변 있음

I am creating a date file using the following script, i want it to print DATES[] in the file my_dates.txt but it's only printing one date which is 2.0171e+09, that is when i type A(1,1)...i pleading for help?

The problem with your file is that you overwrite your Date_num value whenever you calculate a new one. Your DATA variable has n...

I am creating a date file using the following script, i want it to print DATES[] in the file my_dates.txt but it's only printing one date which is 2.0171e+09, that is when i type A(1,1)...i pleading for help?

The problem with your file is that you overwrite your Date_num value whenever you calculate a new one. Your DATA variable has n...

1년 이상 전 | 0

| 수락됨

해결됨

The sliding puzzle: 15

If you are unfamiliar with the sliding puzzle, enter the command _fifteen_ in your MATLAB command window (or search online, of c...

1년 이상 전

해결됨

Pandigital Multiples of 11 (based on Project Euler 491)

A "Pandigital number of order X" is one that contains all of the numbers from 0 to X, but with no leading zeroes. If X>9, the cy...

1년 이상 전

해결됨

Joining Ranges

You are given a n-by-2 matrix. Each row represents a numeric range, e.g. x = [0 5; 10 3; 20 15; 16 19; 25 25] contains...

1년 이상 전

해결됨

Longest run of consecutive numbers

Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

1년 이상 전

답변 있음

How to determine the centroid of this fan(triangle) where the coordinates of one of the vertices is only known and the distance is also known?

In my comment there was a typo in the expression for the centroid. A factor of 1/3 was missing. Sorry about that. Here is a ...

How to determine the centroid of this fan(triangle) where the coordinates of one of the vertices is only known and the distance is also known?

In my comment there was a typo in the expression for the centroid. A factor of 1/3 was missing. Sorry about that. Here is a ...

1년 이상 전 | 0

답변 있음

How to output specific rows from tables depending on values within the table?

I am a little uncertain about the type of data structure you use. For completeness I therefore entered your data in an Excel wo...

How to output specific rows from tables depending on values within the table?

I am a little uncertain about the type of data structure you use. For completeness I therefore entered your data in an Excel wo...

1년 이상 전 | 0

답변 있음

switch in text file

I think a simple if ... else would be better that switch in your case: if isempty(strfind(C,'exp_sse2.c')) % Actions ...

switch in text file

I think a simple if ... else would be better that switch in your case: if isempty(strfind(C,'exp_sse2.c')) % Actions ...

1년 이상 전 | 0

| 수락됨

해결됨

We love vectorized solutions. Problem 1 : remove the row average.

Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

1년 이상 전

해결됨

Put two time series onto the same time basis

Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

1년 이상 전

해결됨

Get the elements of diagonal and antidiagonal for any m-by-n matrix

In the problem <http://www.mathworks.com/matlabcentral/cody/problems/858-permute-diagonal-and-antidiagonal Problem 858. Permute ...

1년 이상 전

해결됨

Construct an index vector from two input vectors in vectorized fashion

Create an index vector defined by two input vectors, one defining the beginnings of one or more index ranges, and the other defi...

1년 이상 전

해결됨

Piecewise linear interpolation

Given an Mx2 vector and a row of M-1 integers, output a two column vector that linearly interpolates Y times between each succes...

1년 이상 전

해결됨

Return a list sorted by number of consecutive occurrences

Inspired by Problem 38 by Cody Team. Given a vector x, return a vector y of the values in x sorted by the number of CONSECUTIVE...

1년 이상 전

해결됨

Create logical matrix with a specific row and column sums

Given two numbers *|n|* and *|s|*, build an |n-by-n| logical matrix (of only zeros and ones), such that both the row sums and th...

1년 이상 전

해결됨

Find the largest value in the 3D matrix

Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...

1년 이상 전

해결됨

Poker Card Deal!

Anyone want to play a card game? Well this is making one deck of cards, with the option of using 2 jokers. The outputs are ...

1년 이상 전

해결됨

Poker Series 11: selectBestHand

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

1년 이상 전

해결됨

Poker Series 10: bestHand

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

1년 이상 전