Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 1

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 1

| akzeptiert

Gelöst


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

fast 13 Jahre vor

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

Mehr laden