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

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

| aceptada

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 0

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

Resuelto


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.

más de 12 años hace

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 0

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

más de 12 años hace | 0

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 0

| aceptada

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 0

| aceptada

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

más de 12 años hace | 2

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 2

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

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

más de 12 años hace | 0

| aceptada

Resuelto


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

más de 12 años hace

Resuelto


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

más de 12 años hace

Cargar más