Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
random Gaussian
normrnd(mu,sig,m,n)

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

Question


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...

plus de 14 ans il y a | 4 réponses | 0

4

réponses

Réponse apportée
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;

plus de 14 ans il y a | 0

Réponse apportée
how to change default behavior of 'times' function
<http://www.mathworks.com/matlabcentral/fileexchange/23821-bsxops>

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
find length of a line use 2 dots
dist = sum(sqrt(diff(x).^2+diff(y).^2))

plus de 14 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 14 ans il y a | 0

Réponse apportée
Triangle centroid
Just average all the coordinates. For example, if you have a vector containing x coordinates and a vector containing y coordinat...

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
finding an item in an array
<http://www.mathworks.com/matlabcentral/fileexchange/28113-findseq>

plus de 14 ans il y a | 0

Réponse apportée
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...

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
merging the matrices
C = [A B]; C = reshape(C',[],3)'

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
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{:}...

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
how sort just nonzero values?
c=[8 0 5 0 1 0 4]; c_new = sort(c,'descend')

plus de 14 ans il y a | 0

Réponse apportée
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);

plus de 14 ans il y a | 5

Réponse apportée
How to plot logarithmic graph in matlab
doc semilogx doc semilogy

plus de 14 ans il y a | 0

Réponse apportée
Finding intersection point of the lines
<http://www.mathworks.com/matlabcentral/fileexchange/22441-curve-intersections>

plus de 14 ans il y a | 2

| A accepté

Réponse apportée
Replace efficiently values in matrix without for-loops
B = b(A);

plus de 14 ans il y a | 0

Réponse apportée
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.

plus de 14 ans il y a | 0

Réponse apportée
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); ...

plus de 14 ans il y a | 0

Réponse apportée
determing file size
im1_stats = dir(filename_image1); im2_stats = dir(filename_image2); ratio = im1_stats.bytes./im2_stats.bytes

plus de 14 ans il y a | 0

| A accepté

Réponse apportée
delete zeros rows and columns
u = I; zc = ~any(u); u(:,zc) = []; zr = ~any(u,2); u(zr,:) = [];

plus de 14 ans il y a | 1

| A accepté

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

plus de 14 ans il y a | 0

Réponse apportée
looking for an explicit answer to my integral
x.*(asin((x-1)./x)-sqrt(2*x-1)./x^2))

plus de 14 ans il y a | 0

Charger plus