Solved


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

12 years ago

Solved


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...

12 years ago

Answered
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...

12 years ago | 1

Answered
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: ...

12 years ago | 1

| accepted

Solved


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

12 years ago

Solved


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...

12 years ago

Solved


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...

12 years ago

Solved


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 ...

12 years ago

Solved


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...

12 years ago

Solved


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 ...

12 years ago

Solved


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...

12 years ago

Solved


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 [...

12 years ago

Solved


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...

12 years ago

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...

12 years ago

Solved


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...

12 years ago

Answered
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...

12 years ago | 0

| accepted

Solved


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...

12 years ago

Solved


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 ...

12 years ago

Solved


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

12 years ago

Answered
indexing cell array of arrays
cellfun(@(x)x(1:K),C,'uni',0) %Where C is your original cell array

12 years ago | 0

| accepted

Answered
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 ...

12 years ago | 0

| accepted

Solved


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

12 years ago

Answered
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 = ...

12 years ago | 0

Answered
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); ...

12 years ago | 1

| accepted

Solved


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...

12 years ago

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

12 years ago | 1

| accepted

Solved


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...

12 years ago

Answered
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...

12 years ago | 1

| accepted

Answered
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...

12 years ago | 0

| accepted

Answered
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...

12 years ago | 1

Load more