Respondida
Plot weighted sparsity pattern
See if this gets you close x = rand(100); y = zeros(100); y(x<.025) = x(x<.025); cmap = [1 1 1;jet]; imagesc(y)...

más de 11 años hace | 1

| aceptada

Respondida
for loop/indexing assistance for simple plot script
Move your plot command to inside the loop, as in: clc; clear %constants g= 1.62;%m/s v= 10; %m/s A= [1...

más de 11 años hace | 0

| aceptada

Respondida
Evaluating an implicit equation, with multiple parameters that can be modified
clc;clear b = .0015; tp = 1; a = 1.47e-7; f = @(tm)(b^2/6)*((tm-tp)^(-1)-(tm^-1))/(log(tm)-log(tm-tp))-a; ...

más de 11 años hace | 0

| aceptada

Respondida
Imbedded regression use with GPUs
Pre-allocation of variables in for loop will speed things up. Also, use beta = x\y; instead of beta = inv(x'*x)*x'...

más de 11 años hace | 0

Respondida
Assigning randomized values (of a linspace range using randperm) to an empty vector for posterior graphing?
I have modified your code, see if this is what you are after: clc;clear Fs=8192; %sample rate ...

más de 11 años hace | 1

| aceptada

Respondida
Is there a function that mix the capabilities of GSCATTER with the ones of PLOTMATRIX?
try gplotmatrix()

más de 11 años hace | 0

| aceptada

Respondida
random exponential cdf numbers
mu = 2 % mean of distribution x = -mu*log(1-rand(1,10)); % ten numbers

casi 12 años hace | 0

| aceptada

Respondida
How does one get Maple style neatly arranged symbolic expressions in Matlab?
use a muPAD notebook >>nb = mupad;

casi 12 años hace | 0

Respondida
Looping for set Indices only
O2 = randi([-5,10],150); %Create sample data subO2 =O2(:,LowRPMIndex); % pull out all rows of LowRPMIndex columns ...

casi 12 años hace | 0

| aceptada

Respondida
Obtaining smoother polynomials from polyfit for curve fitting (Best Fit Curve) or an alternate function.
What you are describing sounds like Runge's phenomenon: Check out this blog entry http://blogs.mathworks.com/loren/2008/07/1...

casi 12 años hace | 0

| aceptada

Respondida
Curve Fitting
polyfit() will work with both row-oriented or column-oriented data, whereas the documentation specifically mentions columns...

casi 12 años hace | 0

Respondida
how to display elements of a 2D matrix as color-coded squares
imagesc(your_matrix)

casi 12 años hace | 6

| aceptada

Respondida
2nd degree ODE with ode45
Well, pretty close. You need to define the ODE as a system of first order ODE's realizing the function arguments can be a matri...

casi 12 años hace | 2

Resuelto


Hackathon: the beginnings
I am thinking of a number between 1 and 10000... can you guess what this number is? *Description* The test suite has rando...

casi 12 años hace

Respondida
Multivariate Linear Regression code
I really do not understand your question, but perhaps this is what you are looking for: x = rand(30,4); >> y = rand(30,1);...

casi 12 años hace | 0

Respondida
I want to convert from symbolic variable to double variable . but i can't, help me.
I too am confused, but maybe this will help: syms x y result = solve(x+3*y-8,2*x-5*y+52) result = x: [1x1 sym...

casi 12 años hace | 0

Respondida
I want to make a movie from plots in MATLAB. How do I do this?
you can start here http://www.mathworks.com/matlabcentral/fileexchange/21944-animated-gif/content/Animated_GIF/html/AnimatedG...

casi 12 años hace | 2

Respondida
replicating dates and inporting them in an excel file
change the format of the excel cell to 'date'. You can verify by entering formula in a cell =datevalue("2/11/2008") and the resu...

casi 12 años hace | 0

| aceptada

Respondida
Kalman filter
http://www.mathworks.com/matlabcentral/fileexchange/5377-learning-the-kalman-filter

casi 12 años hace | 0

Respondida
Normalize data set
v = rand(1,100); %invent data t = linspace(1,10,100); vn = v./max(v); %normalize integral = trapz(t,...

casi 12 años hace | 1

Respondida
Random number in a specific range
x = .4 * rand(100,1)-.2;

casi 12 años hace | 2

| aceptada

Respondida
Matching intermittant data to regular time base
Have you tried: interp1 %?

casi 12 años hace | 1

Respondida
How to take principal component to get eigenvalues for an array of face images
I am no expert, but I think it has do with how you are arranging the matrix. See <http://en.wikipedia.org/wiki/Eigenface Eigenf...

casi 12 años hace | 0

Respondida
Problem aligning data
doc intersect()

casi 12 años hace | 0

Respondida
How to convert data file from grid-format into a table
a = rand(4,4,2); % make up some data b = a(:); [r,c,p]=ind2sub([4 4 2],1:32); [r',c',p',b]

casi 12 años hace | 1

Respondida
Rotate an array of lines
h = line([2,5],[2,2]); rotate(h,[0,0,1],45)

casi 12 años hace | 0

Respondida
integral
syms x a b >> f = x^3-3*x; >> int(f,a,b) ans = -((a + b)*(a - b)*(a^2 + b^2 - 6))/4

casi 12 años hace | 0

Respondida
problems with the eigenvalues
eig returns the eigenvalues already sorted [vec,val]=eig(rand(8)); diag(val)

casi 12 años hace | 0

Respondida
Increasing of speed in numerical calculation
use str2func() to convert your string to a function

casi 12 años hace | 0

Respondida
Scalar from Two Matrix?
|||S||| denotes matrix norm, see doc norm

casi 12 años hace | 0

Cargar más