A résolu


Choose the best fitting dominoes
You will be given a cell array of nx2 matrices. Choose one row from each matrix. These are the ordered pairs that will be plac...

presque 8 ans il y a

A résolu


Find best domino orientation
Given a list of pairs, find the orientation they should be placed in a line, such that the sum of the absolute values of the dif...

presque 8 ans il y a

A résolu


Find best placement for ordered dominoes (harder)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

presque 8 ans il y a

A résolu


Rotate and display numbered tile
Imagine a square tile with four numbers on it, one on each edge. We will call these edges north, east, south, and west. If th...

presque 8 ans il y a

A résolu


Find perfect placement of non-rotating dominoes (easier)
Given a list of ordered pairs, find the order they should be placed in a line, such that the sum of the absolute values of the d...

presque 8 ans il y a

A résolu


Stuff the Board
You have a stack of tiles to put onto an array-like playing board. Each tile has a number (always an integer), and the board var...

presque 8 ans il y a

A résolu


Scoring for oriented dominoes
Given a list of ordered pairs, and the order they should be placed in a line, find the sum of the absolute values of the differe...

presque 8 ans il y a

Réponse apportée
How can i change the 1st row 1st column and last row last column values in a tridiagonal matrix
A(1,1) = 17;A(end,end) = 23; You can create your original matrix without using a loop: n = 5; A = diag(ones(1,n))*3...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
If Statement to meet 8 Conditions
tests = false(8,1); test(1) = all(channel1(1:10)>=min1 & channel1(1:10)<=max1); test(2) = all(channel2(1:10)>=min2 & cha...

presque 8 ans il y a | 0

Réponse apportée
Center align multi-line title in latex format
Using Latex forces left-alignment of lines in cell array of strings . (This may have been changed in the newest versions of Mat...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How can I make this program accept input 'value' as only a positive number except for the case 1(where i would like to have both negative and positive numbers as input)?
if a == 1 R = value*5; else if value<0 disp('Value must be positive') else R = v...

presque 8 ans il y a | 0

Réponse apportée
How to convert array of chars examples: '09:56am' or '09:56pm' to number?
As Stephen points out, it is not quite clear what you want to do once you find a string with 'am' or 'pm', but this may get you ...

presque 8 ans il y a | 0

Réponse apportée
Disk out of an arc
Is this what you want? R = 5; x = linspace(R*cos(theta),R,100); y = sqrt (R^2 - x.*x); x = [0,x]; y = [0,y]; ...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
How to set up two ODE functions in matlab
You should collect your unknowns P and N in a vector x, and define a function for the right-hand side of your ODE system, someth...

presque 8 ans il y a | 2

Réponse apportée
How can i plot the basic fitting line through the origin (0,0)?
You want to find the slope a of the line <</matlabcentral/answers/uploaded_files/111728/ax.JPG>> that best fits your data...

presque 8 ans il y a | 1

Réponse apportée
How to solve "Subscripted assignment dimension mismatch" error ?
dec2bin(n,m) returns the binary representation of n as a string of m characters, with leading '0'-s as needed. When you assign a...

presque 8 ans il y a | 0

Réponse apportée
How to create the Gas deviation-factor chart for natural gases from Standing and Katz
plot(Ppr,Z); xlabel('Ppr'); ylabel('Z'); legends = cell(10,1); for i = 1:10; legends{i} = sprintf('Tpr = %3...

presque 8 ans il y a | 0

| A accepté

A résolu


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

presque 8 ans il y a

A résolu


How long is the longest prime diagonal?
Stanislaw Ulam once observed that if the counting numbers are <http://en.wikipedia.org/wiki/Ulam_spiral arranged in a spiral>, t...

presque 8 ans il y a

A résolu


Solitaire Cipher
Implement the <http://en.wikipedia.org/wiki/Solitaire_(cipher) solitaire cipher>. Since this is from Wikipedia, I am capturin...

presque 8 ans il y a

Réponse apportée
How can i make my integral more efficient?
I agree that the time gain from my first answer is too small to be of much help in your case. I have tested an alternative appro...

presque 8 ans il y a | 0

| A accepté

Réponse apportée
How can i make my integral more efficient?
Using logical indexing instead of find will be faster: relevant = p >= dataset2(d+k,9) & p <= dataset2(d+k,12); dataset2...

presque 8 ans il y a | 0

Réponse apportée
Can I optimise a dynamic model where the objective function is equal just a variable?
What do you mean by 100% full? Is this defined by the hydrogen mass in the car or by the pressure? Either way, you will nee...

presque 8 ans il y a | 1

| A accepté

Réponse apportée
I have intraday data in minutes, how can I convert to daily culmulative return
I have now modified the code to use the text file you supplied as input. The format was significantly different from the origina...

presque 8 ans il y a | 0

A résolu


Find the biggest empty box
You are given a matrix that contains only ones and zeros. Think of the ones as columns in an otherwise empty floor plan. You wan...

presque 8 ans il y a

A résolu


Spot the outlier
All points except for one lie on a line. Which one is the outlier? Example: You are given a list of x-y pairs in a column ...

presque 8 ans il y a

A résolu


How many trades represent all the profit?
Given a list of results from trades made: [1 3 -4 2 -1 2 3] We can add them up to see this series of trades made a profit ...

environ 8 ans il y a

Réponse apportée
barplot with both plot next to each other?
Adapted from <https://www.mathworks.com/help/matlab/ref/bar.html>: y = [5,4;6,5.5;3.8,3]; bar(y) set(gca,'XTickLabel'...

environ 8 ans il y a | 0

A soumis


WH-1080 weather station data viewer
A flexible graphical user interface for viewing weather history data from the weather station.

environ 8 ans il y a | 2 téléchargements |

0.0 / 5
Thumbnail

Réponse apportée
Finding important data in txt file
In your case you want to parse all lines containing just numbers into an array (which you may later want to split by e.g.: Px = ...

environ 8 ans il y a | 0

| A accepté

Charger plus