Réponse apportée
Undefined function or variable 'getImageLabels'.
It's not a built-in Matlab function, you need to download it here <https://www.mathworks.com/matlabcentral/fileexchange/50232-ma...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
how can we calculate count of specific group in a row
A=[3 2 5, 3 2 5, 4 2 5, 4 2 5, 4 2 5] [ii,jj,kk]=unique(A,'rows','stable') out=[ii,accumarray(kk,1)]

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to restart the some portion of script for number of times ?
Use a for loop

plus de 9 ans il y a | 1

Réponse apportée
How to assing incrementing numbers to identical values in a column?
M=[1990 1 .098;1990 1 .99;1990 1 .34;1990 2 .56;1990 2 .44] [ii,jj,kk]=unique(M(:,1:2),'rows','stable') out=[ii cell2mat(acc...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
problems with matrix splitting
A = [ 1 2; 1 3; 1 4; 2 1; 2 4] [ii,jj,kk]=unique(A(:,1),'stable') out=accumarray(kk,A(:,2),[],@(x){x}) celldisp(out)

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
"Error using == Matrix dimensions must agree" Finding max point on a plot?
Maybe you want indexmax = find(a==max(a)) Which can be done otherwise [~,indexmax]=max(a)

plus de 9 ans il y a | 0

Réponse apportée
Find the index of the lowest number greater than zero in a vector
A(A==0)=inf [~,idx]=min(A)

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
How to calculate the mean from cell when each cell is a different double.
cellfun(@(x) mean(x,2),data,'un',0)

plus de 9 ans il y a | 0

Réponse apportée
barcycle command solution needed
barcycle is not a Matlab built-in function, you have to download it here <https://www.mathworks.com/matlabcentral/fileexchange/1...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
extracting data by min and loop
Z = [345 386 312;607 615 630;995 901 956] min_val,index=min(Z,[],2)

plus de 9 ans il y a | 0

Réponse apportée
How to save a matrix into a file repeatedly.
Look at this example for k=1:10 M=rand(31,30) out{k,1}=M end out=cell2mat(out) dlmwrite('file.txt',out)

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to create a function that returns values based on a piecewise function?
f=zeros(size(t)) idx1=t<0 f(idx1)=t(idx1).^2 now do the same for 0<=t & t<=3

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
importing data with dates from excel
[~,~,data]=xlsread('yourfile')

plus de 9 ans il y a | 0

Réponse apportée
How do I compare two matrices on a table to see which one has a higher value?
Maybe you need this M=[A(:) B(:)] idx=diff(M,[],2)

plus de 9 ans il y a | 0

Réponse apportée
Creating a sequential order vector from an unknown size vector
a=[2 8 4 6] out=1:numel(a)

plus de 9 ans il y a | 0

Réponse apportée
How can import data contains Nominal instance
Use [num,text,both]=xlsread('D:\google working\sumusa.csv') You can also use csvread function

plus de 9 ans il y a | 0

Réponse apportée
Replacing array values which match a condition
A(A>90)=180-A(A>90)

plus de 9 ans il y a | 6

| A accepté

Réponse apportée
Multiplying column with scalar
x = [1 2 3 4 5 6] y= [7 ;7; 7; 8; 9; 10] z=x.*y'*4

plus de 9 ans il y a | 0

Réponse apportée
how to calculate a average of five arrays?
If you want to calculate the mean of any matrix, you can use mean function mean(A)

plus de 9 ans il y a | 0

Réponse apportée
Efficient code - Get rid of my loop
str2double(B)

plus de 9 ans il y a | 1

Réponse apportée
Hi, I want to find the peak position of a XY data
x=(0:9)' y=rand(10,25) % 10x25 array max_val=max(y,[],2) plot(x,max_val)

plus de 9 ans il y a | 0

Réponse apportée
i want to ask that how to write this in matlab?
s=[] for r=1:R for y=1:Y for x=1:X for o=1:O s=s+... ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
how many total variable we can define in Matlab 2015?
That depends on your memory capacities, in Matlab Windows Command type memory

plus de 9 ans il y a | 0

Réponse apportée
Plotting 100 rows from 10000 rows automatically?
A=rand(1000,6) % ------Example--- %you can use cell array or 3-D matrix B=mat2cell(A,100*ones(10,1),6) %Then use a for lo...

plus de 9 ans il y a | 0

Réponse apportée
Run a function m times and store in matrix
Look at this example n=10 for k=1:n a{k}=your_function(u1,u2) end out=cell2mat(a)

plus de 9 ans il y a | 0

Réponse apportée
how to convert text into expression
It seems that you are looking for functions such eval, which in fact is not recommended by forums and also by Matlab help. read ...

plus de 9 ans il y a | 0

Réponse apportée
Extracting specific numbers from a vector
idx=ismember(A,-20) A1=A(~idx) A2=sum(idx)

plus de 9 ans il y a | 0

Réponse apportée
Get vector position for specific values
for AP = 1:Cumm_Trip_DistLength AC = find(Trip_dst < (Cumm_Trip_Dist(AP)+.05)& Trip_dst > Cumm_Trip_Dist(AP)); if ~i...

plus de 9 ans il y a | 0

Charger plus