Answered
Plotting a 3-D Function with Interpolated Shading
[X,Y] = meshgrid(linspace(0,1,25), 0:.024:0.5); Z = cos(2*pi*(3.*X - 4.*Y)) ...

13 years ago | 1

| accepted

Answered
How can i compare 2d shapes in mat lab?
In the below example, I'm assuming that you're going to be working with RGB data. That is, I'm assuming that your images aren't ...

13 years ago | 0

| accepted

Solved


Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.

13 years ago

Answered
Moving between different GUI's (bypassing any intermediate GUI)
Others may be able to comment on the best way to do this using appdata. I have found, however, that simply passing the handles s...

13 years ago | 0

Solved


Concatenate matrix into 4 quadrants for given number of iteration
If given a matrix and number, output should be its concatenation like wavelet for given number of iterations. Example a ...

13 years ago

Solved


Diagonal & Anti-Diagonal Matrix: Easy
Create a matrix as shown below from "magic" square. For example: if input x=9;then use mgic(x) and create the matrix...

13 years ago

Solved


Calculate the peak value of square wave
Given the peak value of sine wave, calculate corresponding peak value of square wave, if both have same RMS voltage.

13 years ago

Solved


Square wave average calculation
Given its peak and duty cycle, calculate avg value of square wave

13 years ago

Solved


Find the next prime number
Find the next prime number or numbers for given n. For example: n = 1; out = 2; or n = [5 7]; out = [7 11]; ...

13 years ago

Solved


Ohm's Law
Well its Ohm's law... So V = IR! I will give two of the three values, such as V and I or I and R and you have to return th...

13 years ago

Answered
update GUI from from call back
Does this do it? set(handles.listbox_handle,'String',contents{handles.Selection}) Also, I'm fairly sure that you don't n...

13 years ago | 0

| accepted

Answered
Why does Matlab display different pixel values than other programs?
Shot in the dark here, but could it have anything to do with those programs using 0 indexing while matlab uses 1 indexing? Paint...

13 years ago | 0

| accepted

Answered
Plotting matrix coordinates with indices?
If I understand correctly, I think *imagesc* would work: M = eye(50); %example matrix imagesc(M)

13 years ago | 0

Answered
Is it me ? or something else ...
Others have addressed the other topics of this post, but I would like to comment about what I see as "reasonable expectations" f...

13 years ago | 0

Solved


Tune your guitar
Given an input string with the scientific pitch notation for standard tuning ( <http://en.wikipedia.org/wiki/Guitar_tunings#Stan...

13 years ago

Answered
how to delete certain rows that contain string
So you want to delete any string that contains the string 'A12-1'? Or is it more general than that? Assuming it's just that one ...

13 years ago | 0

| accepted

Solved


Woodall number
Test whether the input is a Woodall number: <http://en.wikipedia.org/wiki/Woodall_number> _Please do not cheat by simply chec...

13 years ago

Solved


Calculate the Hamming distance between two strings
Inspired by a similar Cody problem found <http://www.mathworks.com/matlabcentral/cody/problems/93-calculate-the-levenshtein-dist...

13 years ago

Answered
Draw a line between two points
P = [1 5.2; 2 0; 3 0; 4 0; 5 9.9; 6 0; 7 0; 8 12.1]; posP = find(P(:,2)); %find where y values aren't zero. C = polyfit(...

13 years ago | 0

| accepted

Answered
deleting part of a string
Here's another answer, just in case the characters you want to keep don't fall in sequential order. If they don't, *regexp* with...

13 years ago | 2

Solved


Dice face matrix!
This is dice simulator, but instead of making a random die number, you will receive an "pre-rolled" number in and spit out a mat...

13 years ago

Solved


Create an 'arrow-head" matrix
Write a function that when given an odd number, produces an arrow-head function pointing to the right. Examples n = 3 ...

13 years ago

Solved


Compress strings (not springs)
Please remove excess space, limit one space between others, and no space before punctuation marks. * For example, 'Trendy , ...

13 years ago

Solved


Sort numbers by outside digits
Sort the array so that they are sorted as if their value was a 5 digit number made from the first three and last two digits of t...

13 years ago

Answered
make a GUI for an existing programme
Whether you copy and paste your code into a callback of your GUI or call it from within the gui, it's going to require some modi...

13 years ago | 2

Solved


the return of the hackathon
You might have found a solution to our <http://www.mathworks.com/matlabcentral/cody/problems/205-hackathon-the-beginnings previo...

13 years ago

Solved


Better bullseye matrix
<http://www.mathworks.com/matlabcentral/cody/problems/18-bullseye-matrix Problem 18> asks to create a bullseye matrix like this:...

13 years ago

Answered
plot and calculate error bar
It's really difficult to provide any further help without you offering a more thorough description of your problem, but the *err...

13 years ago | 0

| accepted

Solved


Einsteinium-253 decay
Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

13 years ago

Solved


Compute the dilation of a binary image
A basic operation in image analysis is the dilation. Given an image where each pixel is either on or off (black/white, true/fals...

13 years ago

Load more