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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

Solved


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

12 years ago

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

12 years ago | 1

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

12 years ago | 1

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 1

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

12 years ago | 1

| accepted

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

Solved


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

12 years ago

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

12 years ago | 0

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

12 years ago | 0

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

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

12 years ago | 0

| accepted

Load more