Réponse apportée
receiving a sparse matrix
If I understand you correctly, what you want to do is take your cell array (1 x 40) - and for each column of the cell array maps...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
bar3 color
I believe this will work for you. Basically I am resetting each set of bars colormap by changing the CData of the patches that ...

presque 15 ans il y a | 0

Réponse apportée
Argument Question?
I think this is what they meant - In the function file: function outputVar = myfunction(inputVar) % write the rest of t...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How to recover the Data (fields) from the Structure
allstats = [stat.sfit] should save all the outputs in an array for you. diff(yfit) should give you the interval...

presque 15 ans il y a | 0

Réponse apportée
starting, stopping and waitFor in a timer
I am not exactly sure what you want - but I think this is close. 1. Creating a timer that blocks the MATLAB command line for ...

presque 15 ans il y a | 0

Réponse apportée
Way to get handle to just brushed object?
Not sure if this is what you are doing or not, but this seems to work for me. It works very nicely on lines (at least in my limi...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
How do I generate a matrix based on a formula?
You can use backslash to solve this: n = 9; % Fill in the correct terms for your non-zeros values. A =diag(-4*ones(...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
To generate vertice mesh from a series of contours
I believe this should work for you. % Generating some contour data x = rand(100,1)*4-2; y = rand(100,1)*4-2; z = ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
how to plot axes onto an image
This should help you to start with the problem. Everything is centered at the origin (0,0) but that could be adjusted by changin...

presque 15 ans il y a | 2

Réponse apportée
Colorbar/varycolor ticks
I believe you don't want to change the ticks but the limits of the axis that contains your colorbar: h = colorbar; set(h,'Ylim'...

presque 15 ans il y a | 1

Réponse apportée
GPUArray ANDs and ORs
Have you tried the option of creating your own kernal from a MATLAB function? I wrote a brief code tidbit below. Note: I hav...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Mysterious behavior in parfor (I know, sounds basic, but...)
There were a couple questions in your quesiton, so let me go through them individually. 1. numlabs and labindex alway return...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
I want to store a big matrix (a 720GB variable )
I can think of two ways to do this: 1. If you have a sparse matrix, then I would use the sparse data type in MATLAB and probab...

presque 15 ans il y a | 1

Réponse apportée
Error Message: "Error: Function definitions are not permitted in this context." How do I fix this?
When you define a function in a file - you use the function [R] = HydraulicRadius(W) when you call it to use it, you do ...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
Multithreading does not work for external programs called by the 'system' command
I have seen this before. I think this is how we resolved it. Basically, MATLAB and Windows may use different environment va...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Rescaling colormap/colorbar
If you get a handle to the colorbar, then you can set the y limits of the colorbar axis. This will allow you to show only the co...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
custom stopping criteria when using fmincon
You can set the stop flag as part of the output function. It is described in the documentation here: <http://www.mathworks.com...

presque 15 ans il y a | 0

Réponse apportée
Apply quad (or dblquad) on a series of integrals
The only thing I could think of was to use arrayfun. I don't think it will be much faster you for (at least in my tests) but it...

presque 15 ans il y a | 0

Réponse apportée
Loading files
I find this chart helpful. It lists the file types that core MATLAB can read/write and what functions to use. <http://www.ma...

presque 15 ans il y a | 0

Réponse apportée
Programming
If I understood your question correctly, I would propose the following: First, find the places where 1 changes to 10 or 10 t...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
point values from the curve
If you want to get points from a spline curve - I would suggest using ppval x = 1:10; y = cos(x); pp = spline(x,y); ...

presque 15 ans il y a | 0

Réponse apportée
Error when using fprintf to show a string
The output when you call XLSREAD with two output variables returns the second output is the text fields in cell array. This mean...

presque 15 ans il y a | 0

Réponse apportée
Help with Varargin
I would suggest the following. This way, the input values are reflected. Hardwire the inputs you definitely want, and use vara...

presque 15 ans il y a | 0

| A accepté

Réponse apportée
VideoWriter Help
You can set the rectangular frame you want to capture. currFrame = getframe(gca,[-10 -10 400 400]); The value of cdata i...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
Plotting temperature vs time using two equations and ode45 function
You can use a persistent variable (e.g. switchVar and initially set it to zero) in your deltaT function persistent swi...

presque 15 ans il y a | 0

Réponse apportée
curve fitting toolbox
The curvefit object you get out of curvefitting tool will allow you to take a derivative at a point using the differentiate meth...

presque 15 ans il y a | 1

| A accepté

Réponse apportée
process image and plot graph
Jiro Doke has a tool (GRABIT) on File Exchange that allows you to pick points along the curve of a jpeg and then import them to ...

presque 15 ans il y a | 1

Réponse apportée
Extracting white blood cell from cell samples
This should be enough to get you started. I filtered the purple cells by looking at the blue color plane. I then removed any n...

presque 15 ans il y a | 0

Réponse apportée
two point boundary vale problem
The function bvp4c should be able to get you started. There are some nice examples in the documentation for bvp4c that shoul...

presque 15 ans il y a | 0

Réponse apportée
Matlab with dual core uses only 50% cpu (R2010b, Intel Core 2 duo T9300)
It depends which version of MATLAB you are using. MATLAB started including multithreaded functions in R2007a. I believe multith...

presque 15 ans il y a | 3

| A accepté

Charger plus