A résolu


Periodic Table 101.
Given the atomic number (z), answer the symbol for that particular element of the <http://en.wikipedia.org/wiki/Periodic_table/ ...

plus de 12 ans il y a

A résolu


Justify the character string in center with proportional fonts
how to justify a string of character into center with proportional fonts? Example: x='justify string ' output is ' justif...

plus de 12 ans il y a

Réponse apportée
How to count the number of coins in a image using erosion operator?
You might find Image Analyst's blobs demo to be helpful: http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segment...

plus de 12 ans il y a | 1

Réponse apportée
How to convert a 1D vector in number?
>> barcode = [8 9 0 2 0 8 0 0 1 1 4 4 5]; >> n = polyval(barcode,10) n = 8902080011445 Or, without polyval: ...

plus de 12 ans il y a | 1

| A accepté

A résolu


Acidity of vinegar and salts
Assuming: pH (potentia hydrogenii) = - log10(H+ ionic concentration in mol/Liter). For a buffer solution containing acetic acid ...

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

A résolu


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

plus de 12 ans il y a

A résolu


Trickier Timing
You solution should return control to main program only when the current time ends in either a 5 or 0 (e.g. the current seconds ...

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

A résolu


Adding and Subtracting UINT variables
Given UINT class variables output the correct solution to A-B+C. *Input:* A,B,C Three uint variables *Output:* solution ...

plus de 12 ans il y a

A résolu


Oh Zero Zero Zero!!!
Hello all, So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...

plus de 12 ans il y a

A résolu


Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...

plus de 12 ans il y a

A résolu


Find Rotated Substring
Given a string s1, find if a rotated version of s1 is present in a second string s2. For example, rotated version of some str...

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

A résolu


Mersenne Primes
A Mersenne prime is a prime number of the form M = 2^p - 1, where p is another prime number. For example, 31 is a Mersenne prim...

plus de 12 ans il y a

Réponse apportée
Displaying Files using a Listbox in a GUIDE GUI.
Where exactly are you running into trouble? Posting your relevant code so far might help. As for displaying the files in the lis...

plus de 12 ans il y a | 0

| A accepté

A résolu


Monty Hall
The classic Monty Hall "Let's Make a Deal" final showcase puzzle pits the contestant against three Doors. Behind one Door are dr...

plus de 12 ans il y a

A résolu


How long do each of the stages of the rocket take to burn?
A space rocket has 3 stages: - stage 1, s1; - stage 2, s2; - stage 3, s3. If s1 burns 3 x as long as s2 which burns ...

plus de 12 ans il y a

A résolu


Create One Large Eye of size N x N Quickly?
*<http://en.wikipedia.org/wiki/Aye_(yes) Aye !!!>*

plus de 12 ans il y a

Réponse apportée
indexing cell array of arrays
cellfun(@(x)x(1:K),C,'uni',0) %Where C is your original cell array

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
How to load MAt file into 3D matrix
The answer can be found in the documentation of the *load* function: _S = load(FILENAME) loads the variables from a MAT-file ...

plus de 12 ans il y a | 0

| A accepté

A résolu


Figurate number triangle
Check whether the input matrix is a figurate number triangle: <http://mathworld.wolfram.com/FigurateNumberTriangle.html>

plus de 12 ans il y a

Réponse apportée
how can i simplify this for loop?
Here's how you can get rid of the nested loops: a = []; for i = 1:2 x(1:5) = i; y(1:5) = (1:5) + 1; t = ...

plus de 12 ans il y a | 0

Réponse apportée
How do I preallocate this loop?
Here is the loop with preallocation: z = zeros(5,1) % preallocation for i = 1:1:5 z(i) = x(zipfind - 1 + i); ...

plus de 12 ans il y a | 1

| A accepté

A résolu


Are all the three given point in the same line?
In this problem the input is the coordinate of the three points in a XY plane? P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) how can...

plus de 12 ans il y a

Réponse apportée
Read data from string
>> x='abc123(xyz456)'; >> regexp(x,'(?<=\().+(?=\))','match') ans = 'xyz456' This command uses <http://www.ma...

plus de 12 ans il y a | 1

| A accepté

A résolu


Segmentation violation error when I run a mex file
I need to call a Fortran file when I run matlab. The fortran file was provided by roms.org. I can use mex to generate .mexa64 us...

plus de 12 ans il y a

Réponse apportée
How can I display the mirror image of text in a textbox?
Have you tried downloading and installing one of the "backwards" fonts available on many font sites and setting the 'FontName' p...

plus de 12 ans il y a | 1

| A accepté

Réponse apportée
Problem including tolerance and finding value of a certain term
If you're checking for a certain tolerance, you can, after each iteration, see if the value of your most recently calculated ter...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Code formatting in the forum
Is there any way to have two levels of permissions for editing another user's question? At the moment, assuming there are no use...

plus de 12 ans il y a | 1

Charger plus