Respondida
rgb2ind function not working
That's odd. Make sure something screwy didn't happen with you path. What happens when you type which rgb2ind It should p...

alrededor de 14 años hace | 0

| aceptada

Respondida
How to plot position vs time
t = 0:1000; % Your time vector x = log(t); % Position is natural log of time plot(t,x) % Plot your data

alrededor de 14 años hace | 1

| aceptada

Respondida
random Gaussian
normrnd(mu,sig,m,n)

alrededor de 14 años hace | 0

Respondida
Computational problem
You might not need to. It sounds like bsxfun would help you out. You essencially want to multiply every element of vector A with...

alrededor de 14 años hace | 0

Pregunta


Arithmetic to Functional Converter
I was wondering if anyone knows of a way to convert arithmetic to functional synatx. For example, I'd like to convert the string...

alrededor de 14 años hace | 4 respuestas | 0

4

respuestas

Respondida
Generating a third function from two existing functions
t = linspace(0,10,1e5); y1=1+0.1*cos(2*pi*100.02*t); y2=1+cos(2*pi*100*t); y3=y1.*y2;

alrededor de 14 años hace | 0

Respondida
how to change default behavior of 'times' function
<http://www.mathworks.com/matlabcentral/fileexchange/23821-bsxops>

alrededor de 14 años hace | 0

| aceptada

Respondida
How to increase memory and max array length!?
Buy more RAM. By my calculation, a 2^16x2^16 matrix of doubles would require 32 GB of RAM. Chances are you'll be making at least...

alrededor de 14 años hace | 0

| aceptada

Respondida
find length of a line use 2 dots
dist = sum(sqrt(diff(x).^2+diff(y).^2))

alrededor de 14 años hace | 1

| aceptada

Respondida
trying to create a new vector from 2 vectors.
You'll want to check the size of them. Sounds like one or more of your vectors are column vectors [Nx1]. You want to make sure t...

alrededor de 14 años hace | 0

Respondida
Triangle centroid
Just average all the coordinates. For example, if you have a vector containing x coordinates and a vector containing y coordinat...

alrededor de 14 años hace | 2

| aceptada

Respondida
finding an item in an array
<http://www.mathworks.com/matlabcentral/fileexchange/28113-findseq>

alrededor de 14 años hace | 0

Respondida
While/for loop to write a set of values, varying in each column, when they are both in a certain range.
You want to find the rows that satisfy your need. inRangeX = XY(:,1) >= 510 & XY(:,1) <= 530; % First column between 510-53...

alrededor de 14 años hace | 0

| aceptada

Respondida
merging the matrices
C = [A B]; C = reshape(C',[],3)'

alrededor de 14 años hace | 0

Respondida
Constant variable
Justin. You'll want a very handy function, findseq. It can be downloaded on the file exchange. http://www.mathworks.com/matlabce...

alrededor de 14 años hace | 0

Respondida
constant variable
Justin. You'll want a very handy function, findseq. It can be downloaded on the file exchange. <http://www.mathworks.com/matlabc...

alrededor de 14 años hace | 0

Respondida
Preventing unwanted variables being saved in .mat file
save([fn,'.mat'],'sch_cycle','sch_grade',sch_key_on','sch_metadata'); help save doc save

alrededor de 14 años hace | 0

| aceptada

Respondida
how to extract elements along specified dimension of array
A = rand(100,100,10,10); dim = 4; sz = size(A); inds = repmat({1},1,ndims(A)); inds{dim} = 1:sz(dim); A(inds{:}...

alrededor de 14 años hace | 1

| aceptada

Respondida
Determining the second last row
sch_cycle=xlsread('C:\Autonomie practice\cycle.xls','Input_data'); nrows = size(sch_cycle,1)-1;

alrededor de 14 años hace | 0

| aceptada

Respondida
how sort just nonzero values?
c=[8 0 5 0 1 0 4]; c_new = sort(c,'descend')

alrededor de 14 años hace | 0

Respondida
CALCULATION OF MAXIMUM VALUE IN EVERY ROW
m = [ 3 4 5 6 9 0 1 2 3]; mx = max(m,[],2); % EDIT: was max(m,2); Oops out = bsxfun(@eq,m,mx);

alrededor de 14 años hace | 5

Respondida
How to plot logarithmic graph in matlab
doc semilogx doc semilogy

alrededor de 14 años hace | 0

Respondida
Finding intersection point of the lines
<http://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections>

alrededor de 14 años hace | 2

| aceptada

Respondida
Replace efficiently values in matrix without for-loops
B = b(A);

alrededor de 14 años hace | 0

Respondida
calculating and plotting non continuous function
Brat. Your code is illegible. Please use the "code" button when typing it so that it's easier to follow.

alrededor de 14 años hace | 0

Respondida
Is it possible to express an exponential in terms of a quadratic?
x = 0:0.1:10; y = exp(x); p = polyfit(x,y,2); x_extrapolated = 10.1:0.1:20; y_extrapolated = polyval(p,x); ...

alrededor de 14 años hace | 0

Respondida
determing file size
im1_stats = dir(filename_image1); im2_stats = dir(filename_image2); ratio = im1_stats.bytes./im2_stats.bytes

alrededor de 14 años hace | 0

| aceptada

Respondida
delete zeros rows and columns
u = I; zc = ~any(u); u(:,zc) = []; zr = ~any(u,2); u(zr,:) = [];

alrededor de 14 años hace | 1

| aceptada

Respondida
How to convert a matrix to a Gray scale image?
M = randi(255,[1e3 1e3]); % Your Matrix image(M); colormap('gray')

alrededor de 14 años hace | 0

Respondida
looking for an explicit answer to my integral
x.*(asin((x-1)./x)-sqrt(2*x-1)./x^2))

alrededor de 14 años hace | 0

Cargar más