답변 있음
How do I fit an exponential curve to my data?
[EDIT] Please read about fit and try: x=[1,2,4,6,8]'; y=[100,140,160,170,175].'; g = fittype('a-b*exp(-c*x)'); f0 = fit(x,...

거의 13년 전 | 7

| 수락됨

답변 있음
position of the element have small value
[~,ii] = min(A); position_pq = [1:size(A,2);ii];

거의 13년 전 | 0

| 수락됨

답변 있음
How to organise data based on a large range of numbers?
ssn = {'summer','autumn','winter','spring'}; d = [31 28 31 30 31 30 31 31 30 31 30 31]; dd = cumsum(d'); b = [1;dd(cu...

거의 13년 전 | 0

답변 있음
how to create a vector of consecutive numbers that skip over certain elements
R = cumsum(~K).*~K;

거의 13년 전 | 2

답변 있음
Find local differences in a matrix
D = diff(cmap,1,2);

거의 13년 전 | 0

| 수락됨

답변 있음
Assign values to elements of a matrix with indices less than those specified in an array
n = max(A); nn = numel(A); p = zeros(n,nn); p(A + n*(0:nn-1))=1; out = flipud(cumsum(flipud(p)));

거의 13년 전 | 0

답변 있음
how rearrange data in a matrix?
a = num2cell(reshape(data,1,2,[]),[1 2]) out = blkdiag(a{:}); or out = kron(eye(4),[1 1])*diag(data); or ou...

거의 13년 전 | 1

답변 있음
how do i sort cell array
q = {'T1-001','T2-058','T1-235','T1-058','T2-001',' T1-045'}; q0 = regexp(q,'\d*','match'); q1 = str2double(cat(1,q0...

거의 13년 전 | 1

답변 있음
cell2mat returns an error
Just: str2double(A)

거의 13년 전 | 0

답변 있음
How do i manipulate matrix in form given below??
reshape(a',size(a))';

거의 13년 전 | 0

답변 있음
Using .data{1,i} in a for loop
for ii = 1:5, Work{ii}=Constant.*Test{1,ii}.data.*Increment; end

거의 13년 전 | 0

답변 있음
sorting data in matrix
asorted = sortrows(a,[-2 1])

거의 13년 전 | 0

| 수락됨

답변 있음
how to find the location of element in matrix?
I=[2 3 10 4 6; 1 4 7 5 3; 5 2 8 4 3;8 2 1 7 3;1 9 8 3 4;]; D = padarray(I,[1 1],0,'both'); s = size(I); N = padarray(...

거의 13년 전 | 0

| 수락됨

답변 있음
Looping matrix differences for every iterations
d = bsxfun(@minus,A(:)',W(:));

거의 13년 전 | 0

| 수락됨

답변 있음
How to convert a 80x60 cell of 8x8 block matrices into a matrix array of 640x480?
DQ_Ymat = cell2mat(C_Y); Please read about function |cell2mat|: doc cell2mat

거의 13년 전 | 1

| 수락됨

답변 있음
how to convert 1D element into 2D element in a matirx?
A = [4 0 3 0 4 4 4 -3 -3 -3 2 -3 5 0 -1 5] s = size(A); [irow,icol] = ndgrid(1:...

거의 13년 전 | 0

답변 있음
how to swap this matrix
[v,ia] = min(A); A(ia) = Z(1); Z(1) = v; ADD [~,ia] = min(A); Z([ia,1]) = Z([1,ia]);

거의 13년 전 | 1

| 수락됨

답변 있음
how to swap this matrix
Z([1,2]) = Z([2,1]); ADD Z = [2 4 2 1 7 9 1 1]; % new case a = [1, 2]; ...

거의 13년 전 | 0

| 수락됨

문제를 풀었습니다


Find the position of first minimum value in an integer array with numbers
If x = [2 6 4 9 10 3 1 5 1] the the output should be 7, because the first minimum value (1) lies at the 7th position.

거의 13년 전

문제를 풀었습니다


Find the position of last minimum value in an integer array with numbers
If x = [2 6 4 9 -10 3 1 5 -10] then the output should be 9, because last minimum value (-10) lies at the 9th position.

거의 13년 전

문제를 풀었습니다


Smith numbers
Return true if the input is a Smith number in base ten. Otherwise, return false. Read about Smith numbers at <http://en.wikipedi...

거의 13년 전

답변 있음
Creating new arrays from the elements of multiple arrays
B = cat(3,A{:}); out = permute(B,[3 2 1]); and out1 = num2cell(out,[1 2]);

거의 13년 전 | 0

| 수락됨

문제를 풀었습니다


Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

거의 13년 전

문제를 풀었습니다


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

거의 13년 전

문제를 풀었습니다


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

거의 13년 전

문제를 풀었습니다


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

거의 13년 전

문제를 풀었습니다


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

거의 13년 전

답변 있음
Summing a Matrix, row by row.
A = [1,2,3;1,2,3;1,2,3] B = cumsum(A)

거의 13년 전 | 1

| 수락됨

답변 있음
How to fill in this matrix?
reshape(repmat(1:24,[4,1,16]),1,[])

거의 13년 전 | 1

답변 있음
Mean of matrix by columns
conv2(A,[.5 .5],'valid')

거의 13년 전 | 1

| 수락됨

더 보기