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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 1

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

mehr als 12 Jahre vor | 1

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

Gelöst


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

mehr als 12 Jahre vor

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

| akzeptiert

Mehr laden