Respondida
Can I specify the stacking order of graphics objects when using hgtransform objects?
[in reply to your answer] This isn't really a bug but more of just a limitation in how the painters renderer works. It will ...

más de 12 años hace | 0

Respondida
Address a variable using the name of another variable
Sounds like you probably want to look into using structures with dynamic fieldnames <http://www.mathworks.com/help/releases/R...

más de 12 años hace | 0

| aceptada

Respondida
interpolation 3+ variables and a datavector..
%Data x = [0.6000 0.2000 0.3000 0.5000 0.3000 0.6000 0.7000] y = [2 2 3 1 1 1 1] z = [0.1500 0.0200 0.0200 0.0300 0.0300 ...

más de 12 años hace | 0

| aceptada

Resuelto


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

más de 12 años hace

Respondida
Writing a code to find area of polygon
pa = @polyarea area = pa(x,y) Where x and y are your coordinates

más de 12 años hace | 1

Respondida
How can I save a string as a filename and only include specific variables
save(file,'-ascii','A') Call save with the variables inside of () rather than with spaces where they represent strins rathe...

más de 12 años hace | 1

| aceptada

Respondida
Is there a way to produce sub-bullets when using the publish markup feature?
You can use HTML markup and include this in your report: <http://www.mathworks.com/help/releases/R2013b/matlab/matlab_prog/ma...

más de 12 años hace | 0

| aceptada

Respondida
How to optimise/vectorize loop containing the function "imrotate", using multiple images and angles as input
* Do you have the parallel computing toolbox? If so, this might be something well-suited for |parfor|. I.e. you can do all 360d...

más de 12 años hace | 1

Respondida
How do I resize (connected) components in a 3D binary image sequence without changing the dimensions of the sequence?
Use |imdilate|. If you want to keep each object unique, label it first: bw = imread('coins.png')>100; imtool(bw) Lbig = ...

más de 12 años hace | 1

| aceptada

Resuelto


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

más de 12 años hace

Resuelto


Side of a rhombus
If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

más de 12 años hace

Resuelto


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

más de 12 años hace

Resuelto


Consecutive Powers
Return 2 numbers and 2 powers such that their difference is 1 A 4 element row vector is expected: x where x(1)^x(2) - x(...

más de 12 años hace

Resuelto


Half-Swap
Given a vector with an even number of elements, rearrange it so that the elements in its first half are switched with those i...

más de 12 años hace

Respondida
How to crop green color object from the image?
<http://blogs.mathworks.com/steve/2011/02/04/more-on-segmenting-in-a-b-space/>

más de 12 años hace | 0

Respondida
is there a function that calculates the no. of rows or cols
[r,c] = size(a); For more info: doc size

más de 12 años hace | 0

Respondida
write matlab code in c to decrease run time
It depends, your mileage will vary. A few things to consider: * Have your profiled your code to make sure it's running opt...

más de 12 años hace | 0

Respondida
How can I sum the rows of a matrix at a fixed distance between each other?
Use |reshape| and sum along a specific dimension: m=3; p=4; A=[12;11;10;9;8;7;6;5;4;3;2;1]; B=[A(1)+A(5)+A(9);A(2)+A(6)+...

más de 12 años hace | 0

| aceptada

Respondida
Getting a 3-D Plot to Automatically Rotate
Use |rotate3d| _'on'_: surf(peaks); rotate3d('on')

más de 12 años hace | 0

| aceptada

Respondida
Sort multidimensional array along one dimension
If you want to sort along the fifth dimension, use: xsorted = sort(x,5);

más de 12 años hace | 0

| aceptada

Resuelto


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

más de 12 años hace

Resuelto


Tony's trick for duplicating an mx1 vector n times
Without using repmat, or for loop, or concatenation, create a function to duplicate a vector, v, a specified number of times, n....

más de 12 años hace

Resuelto


Find out the best cricketer
Irrespective of input, return Sachin Tendulkar as a output

más de 12 años hace

Resuelto


Insert certain elements into a vector.
We start with vector V. Some values W will be inserted into V, at positions U. Say, |V| contains |[1 2 3 4 5]| and |W| is |[0...

más de 12 años hace

Resuelto


"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...

más de 12 años hace

Respondida
imwrite Function in MATLAB
_'WriteMode'_ append doesn't appear to work for *.bmp files. <http://www.mathworks.com/help/releases/R2013b/matlab/ref/imwrit...

más de 12 años hace | 0

Respondida
Matlab approximation of 0 for small numbers
while abs(bb)<10^-7 etc. end ?

más de 12 años hace | 0

Respondida
Is there a bug?
No problems. IE10 on Win7x64

más de 12 años hace | 0

| aceptada

Respondida
how can i place an array a= [2,2,2] randomly (vertically or horizontally) into a matrix b=zeros(10x10) ?
%Sizes: nz = 10; z = zeros(nz); a = [2 2 2]; na = numel(a); %Engine: dim = rand>0.5; %do we transpose pos = randi...

más de 12 años hace | 0

| aceptada

Respondida
Radius of curvature of a crater on a surface
So you'll need to first determine all of the faces that are within the dimple. If the rest of the mesh is convex, you could do ...

más de 12 años hace | 0

| aceptada

Cargar más