Enviada


dbarray - pack and unpack database arrays to matlab arrays
dbarray lets you directly send/fetch array[] type database fields into native MATLAB variables

casi 12 años hace | 1 descarga |

5.0 / 5
Thumbnail

Respondida
Contributors metainfo: reputation and more
*Recent news:* ... and *BAM!* Walter hits *25,000*! Congratulations are in order again. It's impressive to see, but depressin...

casi 12 años hace | 4

Respondida
how to project images on the side walls of a 3D surf plot
Hi Konstantinos, Does this code get you on your way? R = 0:0.1:1; z = cos(-R); % that'd be your current y-f...

casi 12 años hace | 1

| aceptada

Respondida
What's on your personal MATLAB to-do list?
A triangulation3d class which would basically inherit the standard triangulation class, but add useful features specifically for...

casi 12 años hace | 2

Discussion


What's on your personal MATLAB to-do list?
What MATLAB tools or functions have you been thinking about making but haven't quite gotten around to it? It can be something...

casi 12 años hace | 2

Pregunta


What's on your personal MATLAB to-do list?
What MATLAB tools or functions have you been thinking about making but haven't quite gotten around to it? It can be something...

casi 12 años hace | 6 respuestas | 2

6

respuestas

Respondida
Reading lines from a text file and storing them into an array.
Hi Surush, The trick is to put each line in an element of a cell array. Here's some commented code that does what you're t...

casi 12 años hace | 11

| aceptada

Enviada


surf2solid - make a solid volume from a surface for 3D printing
Turns thin surfaces into closed solids by adding a flat base or offsetting by a given thickness.

casi 12 años hace | 13 descargas |

4.8 / 5
Thumbnail

Respondida
Error using surf() with colorbar and title
Hi Christian, try this: opengl('software') figure,surf(magic(99)),colorbar,title('Va') Does that sort it out as well?...

alrededor de 12 años hace | 0

Resuelto


Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...

alrededor de 12 años hace

Resuelto


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

alrededor de 12 años hace

Resuelto


Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

alrededor de 12 años hace

Respondida
How to execute a function after the value of a property changed? Problems with callback function
If all of the observation of *PMV* is done by the *RB* class itself, so there's actually a better/cleaner way to do what you're ...

alrededor de 12 años hace | 0

Respondida
find intersection between two data sets
Hi Carlos, try this code: dataset = rand(20,2); zoneXY = rand(1,2); zoneRadius = rand(1); dists = sqrt(sum(bsxfun(...

más de 12 años hace | 0

| aceptada

Respondida
Interpolating vectors at specific points
Hi Christopher, here's a solution that does the job. If you can guarantee that you only have one crossing in your vector V, then...

más de 12 años hace | 0

Respondida
What am I doing wrong with object oriented programming?
Mark, you're almost there. Here's how to "just get it running": methods function q = calculateSin(this, x) ...

más de 12 años hace | 0

| aceptada

Respondida
how to calcuate mean with NaN
If you have the Statistics Toolbox, just replace calls to |mean()| with calls to |nanmean()|. If you don't have it, you can d...

más de 12 años hace | 0

| aceptada

Enviada


unifyMeshNormals
Aligns adjacent faces in a triangulated mesh surface or volume

más de 12 años hace | 2 descargas |

4.7 / 5
Thumbnail

Respondida
2D Contour colormap too dark.
Hi Marc, Got it. The RGB values you're copying in are 8-bit RGB colours of integers ranging from 0 to 255. You're right that ...

más de 12 años hace | 0

| aceptada

Respondida
Elevate a single isoline in a contour (2D) plot
Hi Marc, Is this what you're trying to do? [x,y,z] = peaks; z = z*10 figure [c,h] = contour(x,y,z,'LevelStep',2...

más de 12 años hace | 1

| aceptada

Respondida
update objects' coordinate of the same plot !!!!!!!!!!!!!!!!!!!
Hi Bolivar, Let's just go with one object first for simplicity: Here's the contents of the *user1* class: classdef us...

más de 12 años hace | 0

Respondida
How to convert binary image to 2D triangulation?
Geert, here's how I'd do it. Note that I use <http://www.mathworks.com/matlabcentral/fileexchange/30525-isocontour isocontour> f...

más de 12 años hace | 2

| aceptada

Respondida
How to convert 2D triangulation to binary image?
Hi Geert, Here's something that does what you want. It's not optimised for speed as it simply iterates naively through triang...

más de 12 años hace | 0

| aceptada

Respondida
Plotting 4d data with matrices.
Naty, as per the comment above I can't replicate your exact data, but here's an example that should show you how to make the fig...

más de 12 años hace | 1

| aceptada

Respondida
count of months spanned
Hi Leah, I think you can do this quite nicely as follows: startvecs = datevec(startdates); endvecs = datevec(enddates...

más de 12 años hace | 1

| aceptada

Respondida
Nested if statement won't execute
Perhaps the value of |i| is never set, or at least never set _in the scope of the loop that you are running_. Perhaps you mean |...

más de 12 años hace | 0

| aceptada

Respondida
Errors in solving nonlinear simultaneous equations
You can't plot a simultaneous equation during iterations in that way. If you instead put: options = optimoptions('fsolve...

más de 12 años hace | 1

| aceptada

Respondida
Retrieve all data from columns apart from id when using MySQL
Hi Gurvinder, Can I suggest that I think it would be easier for you to simply get _all_ the fields, and then just discard the...

más de 12 años hace | 1

| aceptada

Pregunta


Equation of a constrained circle
I have a circle with known parameters (x,y,r): x = 37 y = -7 r = 38 I would like to find the parameters of a new c...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Convert/decompose formula terms similarly to LinearModel
I'm trying to do something which must be implicitly done inside *LinearModel.predict()*, but I can't seem to get to it. The t...

más de 12 años hace | 1 respuesta | 0

1

respuesta

Cargar más