Respondida
How to set YTickLabel in double y-axis plot?
Or in R2016a: ax(1).YAxis.TickLabelFormat = '%.2f';

alrededor de 8 años hace | 0

Respondida
To create Polar Shaded plot
If you don't see a polar plot which does what you want, you can use the <http://www.mathworks.com/help/matlab/ref/pol2cart.html ...

alrededor de 8 años hace | 0

| aceptada

Respondida
App Designer UIAxes doesn't show results of fitting curve
UIAxes has a number of limitations in this first release. From the error message, I would guess that either app.x or app.y is a ...

alrededor de 8 años hace | 2

| aceptada

Respondida
How do I create a 3D histogram for; x = 1*26, y=1*28, z = 26*28 ?
If you're using R2015b or later, you can use the new <http://www.mathworks.com/help/matlab/ref/histogram2.html histogram2 functi...

alrededor de 8 años hace | 0

Respondida
How can I fill the area between a function and the vertical axis x = 0, either for positive or negative values of it?
<http://blogs.mathworks.com/graphics/2015/10/13/fill-between/ This post I did on the MATLAB Graphics blog> might give you some i...

alrededor de 8 años hace | 1

| aceptada

Respondida
What function other than colormap can display an image as a texture-mapped surface?
In this example, you don't need colormaps at all. Just use the RGB images as the textures. for n = 1:numberOfPlanets ...

alrededor de 8 años hace | 3

| aceptada

Respondida
getting RGB from image created with imagesc
You probably want <http://www.mathworks.com/help/matlab/ref/ind2rgb.html ind2rgb>. But if you're using imagesc, rather than imag...

alrededor de 8 años hace | 3

| aceptada

Respondida
Figure problem: disappeared text and radio buttons in figure/questionnaire after changing fron 2012b to 2015b
Starting in R2014b, the parsing of the property/value pairs in the input arguments got pickier. Your code has lots of instances ...

alrededor de 8 años hace | 1

Respondida
Setting EdgeColor in 2015B+ for graph.m
It wants an array with 3 columns, and one row for each edge. The columns are the red, green, and blue components of the color fo...

alrededor de 8 años hace | 0

| aceptada

Respondida
No FaceAlpha property for area plot
FaceAlpha was added to area in R2015b. So if you upgrade to either that or R2016a, you can do this: area(rand(1,10),'FaceAl...

alrededor de 8 años hace | 1

Respondida
I am getting the following error on using pcolor() fucntion:??? Error using ==> surface Value must be numeric Error in ==> pcolor at 76 hh = surface(x,y,zeros(size(c)),c,'parent',cax);
It's trying to say that it doesn't like the type 'logical'. That's what you got when you did this: A = (X.^2 + Y.^2) <= r^2...

alrededor de 8 años hace | 0

| aceptada

Respondida
Efficient display of 2D images in 3D space?
I wouldn't think that going to a scatter plot would be a good approach here. What about something like this? img = imrea...

alrededor de 8 años hace | 2

| aceptada

Respondida
How can I overlay pseudocolor images with different colormaps?
You actually have it exactly right, but the second call to imagesc reset the axes h2. This set the Visible property back to on. ...

alrededor de 8 años hace | 0

| aceptada

Respondida
error using mouse scroll with zoom on
I think that bug's fixed in R2015b.

alrededor de 8 años hace | 0

| aceptada

Respondida
What is the fastest way to update overlaid graphics in a video?
Actually, it sounds like you're probably up against this case: <http://blogs.mathworks.com/graphics/2014/11/26/pretriangulati...

alrededor de 8 años hace | 0

| aceptada

Respondida
bilinear interpolation of 2D matrix
Here's one approach. Create an XY grid, but put nans in some of the Z values. [x,y] = meshgrid(linspace(-3,3,40)); z ...

alrededor de 8 años hace | 4

| aceptada

Respondida
What's the difference between hleg = legend(...) and [hleg, a, b, c] = legend(...)?
As Ced noted above, the four return arg form is deprecated and is only included for compatibility reasons. It is returning the o...

alrededor de 8 años hace | 0

Respondida
How can one remove axis ticks on imagesc but keep labels?
Have you tried setting the length of the ticks to 0? set(gca,'TickLength',[0 0])

alrededor de 8 años hace | 6

Respondida
How to create 3D block graphic?
This should give you some ideas on where to start: w = 2; h = 5; d = 1/4; verts = [-w -h -d; ... w -h...

alrededor de 8 años hace | 0

Respondida
How to create a smoothed histogram and compute it's derivative magnitude in matlab
If you have the <http://www.mathworks.com/products/statistics/ statistics toolbox>, you might want to consider <http://www.mathw...

alrededor de 8 años hace | 3

Respondida
How to plot section of a vector with a condition
I'm not clear on whether you want to connect across the skipped points, or leave them out. Here's an example that illustrates bo...

alrededor de 8 años hace | 0

| aceptada

Respondida
How can I calculate the pixel position in a figure-windows of a 3D object in perspective projection?
I'm afraid that it's rather more complex than just getting the view matrix. Let's walk through an example in detail. I'll as...

alrededor de 8 años hace | 2

| aceptada

Respondida
How to show different views on different axes ?
The simplest is to just create 4 copies of the scene you've made: set(gcf,'Renderer','zbuffer'); load mri.mat; K = s...

alrededor de 8 años hace | 0

| aceptada

Respondida
Volume of 3D polyhedron
One option you might look at is <http://www.mathworks.com/help/matlab/ref/alphashape.html alphaShape>. It's similar to convhull,...

alrededor de 8 años hace | 4

| aceptada

Respondida
Question about speeding up line plotting
I did <http://blogs.mathworks.com/graphics/2015/06/09/object-creation-performance/ a post on the MATLAB Graphics> blog a while b...

alrededor de 8 años hace | 0

| aceptada

Respondida
I want to use unicode transportation symbols on plots.
The syntax is pretty simple. You'll want to use the UTF-16 form, which looks like this: text(.5,.5,['Rocket = ', hex2dec('d...

alrededor de 8 años hace | 0

| aceptada

Respondida
How can I realize a surface between two circles plotted in 3D that not have the same centre?
There isn't a built-in for this. There's <http://www.mathworks.com/matlabcentral/fileexchange/21951-cone/content//Cone.m one on ...

alrededor de 8 años hace | 3

| aceptada

Respondida
Line through polygon using patch
Patch wants to draw closed polygons. If you don't want the line from the end of the second patch back to the beginning, then the...

alrededor de 8 años hace | 1

| aceptada

Respondida
In older versions of Matlab (2014a) when I created multiple plots they appeared one after the other allowing them to be verified briefly before the next appeared. With the new graphics engine (2015a) this is no longer the case, can I get this back?
Add some calls to <http://www.mathworks.com/help/matlab/ref/drawnow.html drawnow>. Before 2014b, there were a lot of cases where...

alrededor de 8 años hace | 1

| aceptada

Respondida
How to plot discontinuities with scatteredInterpolant in 3D?
If you have some way of identifying which side of the discontinuity a location is on, then I would set up two scatteredinterpola...

alrededor de 8 años hace | 1

Cargar más