Risposto
Subplot with varying number of plots
Hi, no, you can't insert the figure, but you can do something that should look like what you want. You can "combine" subplots...

circa 11 anni fa | 2

| accettato

Risposto
How to obtain sum of RGB color values of a pixel?
Hi, something like sum(I, 3) ? Titus

circa 11 anni fa | 0

| accettato

Risposto
Managing {} indexing in SUBSREF/SUBSASGN overloads.
Hi Cedric, very tricky question, indeed. I gave it a try and came up with this subsref: function [varargout] = subsref(...

circa 11 anni fa | 2

Risposto
Plotting 1/x correctly
Adding to Thorsten's answer: you need to put x on the x axis while plotting: plot(x, 1./x); Titus

circa 11 anni fa | 0

Risposto
Matrix with Bell Triangle
O.k., when there is a full solution, I'm happy to share mine as well ;-) function B = bell(n) B = zeros(n); B(1,1) = 1; ...

oltre 11 anni fa | 3

Risposto
How do I convert a cell array of char to a single plot title?
Hi, use sprintf to add a carriage return at the end of each line: title(sprintf('%s\n', labels{:})) Titus

oltre 11 anni fa | 0

| accettato

Risposto
polyfit doesn't fit the data
Hi, I guess it's another problem here: note, that if you call polyfit with [p,s,mu] = polyfit ... you get the scaled ...

oltre 11 anni fa | 0

| accettato

Risposto
mclmcrrt 7_16.dll download
Hi, this question has been answered <http://www.mathworks.com/matlabcentral/answers/79509-how-can-i-get-mcr-7-16 here>. Ti...

oltre 11 anni fa | 0

Risposto
Fitting data with custom function defined with recursion loop
Hi Bill, I guess Curve Fitting tool will call your function with x being a vector and not a scalar. In this case your functio...

oltre 11 anni fa | 0

Risposto
forward approximation of derivative
Hi, first of all, your yforward should be yforward = (y(2:end) - y(1:end-1))./delx; which is in fact the same as ...

oltre 11 anni fa | 0

| accettato

Risposto
Error using / Matrix dimensions must agree...
Hi, MATLAB is not Java ;-). Concatenating strings uses [] in MATLAB: run(['..\extract' num2str(i) '.m']) Titus

oltre 11 anni fa | 0

| accettato

Risposto
I'd like to delete collums that start with a value that already has been in the matrix
Hi Benoit, what about this solution? Assuming your matrix is named A, [~,idx] = unique(A(1,:)); Anew = A(:, idx); ...

oltre 11 anni fa | 0

Risposto
What can be the reasons that mcc command does not generate wrapper file while creats exe file?
Hi Hoda, if it creates the .exe what other script are you expecting? Can you start the executable? Titus

oltre 11 anni fa | 0

Risposto
How can I plot the values of a field on (x,y) points for a fixed z
Hi Massimo, the function contour3 should do the trick. doc contour3 Take a look at the case "contour3(Z,v)" which des...

oltre 11 anni fa | 0

Risposto
How can we find out no of max values in a matrix
Hi Navan, count them: n = sum(A == max(A)); Note though, that this works fine for integers, but if you have floating ...

oltre 11 anni fa | 1

| accettato

Risposto
Matlab Coder and ode45 with extra parameters - What implementation strategy?
Hi Nicolas, one way to do this is the "classical" way, i.e., the way it was done before anonymous functions existed. If you a...

oltre 11 anni fa | 1

| accettato

Risposto
Error in load.m? "Unexpected Matlab Operator"
Hi, you might not but it seems that Nicola Pero did some years ago ;-). The location of load.m indicates that it belongs to s...

oltre 11 anni fa | 1

| accettato

Risposto
How to plot with incrementally changing variables
Hi Peter, when you divide by a vector, you need to switch to pointwise arithmetic instead of matrix "division". So it should ...

oltre 11 anni fa | 1

| accettato

Risposto
How can I find maximum of a function in MATLAB?
Hi Gollapinni, usually by finding the minimum of "-f". How to do this depends on your function. Good starting point is fminse...

oltre 11 anni fa | 0

| accettato

Risposto
VBA-like "with" function ? + get(0,'ScreenSize')
Hi Luis, not really. What you can do is to assign to an intermediate variable, something like lTagPanel = data.UsedByGui...

oltre 11 anni fa | 0

| accettato

Risposto
MatlabR2012a provides external access ability to WSDL web service
Hi, the functionality to read from WSDL web services used to be provided by doc createClassFromWsdl Titus

oltre 11 anni fa | 0

Risposto
2010B runtime on a windows 2012 server
Hi Kris, the problem is, that Win2012 was released way after R2010b, therefore it's not officially supported, see <http://www...

oltre 11 anni fa | 0

| accettato

Risposto
Unique function not deleting duplicate rows.
Hi Luc, I don't see duplicate data, but the data change sign ...? Take last 4 rows of pleb and it's 19.4558 -4.1355 ...

oltre 11 anni fa | 1

Risposto
Is there a specific function forcing user to select a particular option?
Hi, no, for a console program there is no function for this. You will need to use the function input and verify what has been...

oltre 11 anni fa | 1

Risposto
Create a matrix from another matrix
Hi Giannakis, I guess just by using A as index: A=[ 5 6 4; 1 2 8; 9 7 11]; x = 1:2:21 x = 1 3 5 ...

oltre 11 anni fa | 0

| accettato

Risposto
standalone MATLAB program: retrieve path and filename
Hi Kevin, I'm not sure what the getmodulefilename is supposed to do,and even less, why you want to incorporate into your stan...

oltre 11 anni fa | 0

Risposto
Performance of non-preallocated array
Hi, two comments: * You are doing the timing in the command line. This gives typically worse results than in a function, b...

oltre 11 anni fa | 0

| accettato

Risposto
Cannot find the .NET Builder
Hi Kai, does license('test', 'matlab_builder_for_dot_net') gives a true? ver tells you the installed products, not ne...

oltre 11 anni fa | 0

Risposto
solve a system of differential equations
Hi Vahid, did you already try to solve it numerically? It should be straightforward to solve using ode45. You function that y...

oltre 11 anni fa | 0

| accettato

Risposto
How to call a function
Hi, hmm, if you call it correctly, it seems to work? C = XORS({'A' 'C'}, {'A' 'G'}) C = AT You might add ...

oltre 11 anni fa | 0

Carica altro