Answered
Saving arrays in a For loop (3D array)
Use a cell array to store your matrices Example for k=1:3 M{k}=rand(randi(10),3) end %To get your matrices M{1...

10 years ago | 0

| accepted

Answered
exporting table to specific excel sheet
for k=1:3 A=randi(4,4); xlswrite('file.xlsx',A,sprintf('name%d',k)) end

10 years ago | 0

Answered
fraction 3d matrix of 3d matrix
a=randi(10,2,108,401); b=reshape(a,2,2,54,401); c=permute(b,[1 2 4 3]);

10 years ago | 0

Answered
Finding the standard deviation of a matrix
you can use std function std(a(:)) If you want to use your for loop, you have to correct some errors a=[3 -2 1;4 0...

10 years ago | 0

Answered
Transfer data from Simulink by «toWorkspace» to GUI to plot in a graph in the GUI ??
You can save your data using to file block <http://www.mathworks.com/help/simulink/slref/tofile.html> then use load command to ...

10 years ago | 0

Answered
Hi everyone, I want to know the name of the toolbox to be used to extract the MFCC my audio
Have you searched in the internet? you can type on google search mfcc matlab you will get what you want

10 years ago | 0

Answered
generate a image of a line
A=ones(256); A(1:10:end,:)=0 imshow(A)

10 years ago | 0

| accepted

Answered
How to import data from .txt file?
Spill1 = importdata('Spill.txt'); Spill=Spill1.data T = Spill(:,1); C = Spill(:,2); plot(T,C) xlabel('Time / Days'); yla...

10 years ago | 4

| accepted

Answered
how can I eliminate coloum with mean largest than a certain value?
largest_value=50 idx=mean(A)>largest_value A(:,idx)=[]

10 years ago | 0

Answered
How to remove one x axis from 2 subplot
h=findobj(gcf,'type','line') set(h(2),'xticklabel','')

10 years ago | 1

Answered
Using fft on ecg data?
Use csvread <http://www.mathworks.com/help/matlab/ref/csvread.html> or xlsread <http://www.mathworks.com/help/matlab/ref/xlsre...

10 years ago | 0

Answered
Undefined function 'regress' for input arguments of type 'double'. Issue
Check if you have statistics toolbox

10 years ago | 0

| accepted

Answered
What is difference between min and min(min) ?
Just try it you will understand A=[1 2 3;4 5 6] m=min(A) % give the minimimum of each column n=min(min(A)) % is the mi...

10 years ago | 2

Answered
How to add a value to a row vector x number of times in a loop to get an array of iterations
A = [-100 -200 -150 -50] B = [10 20 15 5] r=bsxfun(@times,B,(0:2)') out=bsxfun(@plus,r,A)

10 years ago | 0

| accepted

Answered
Write one year date into a excel?
out=datestr(datenum('01/01/2016')+datenum(0:365),'mm/dd/yyyy') xlswrite('your_file.xlsx',out)

10 years ago | 0

| accepted

Answered
how to delete empty entry from a table
%------Example---------------- v={'a' 1 'k';'b' 2 '';'' 1 'v'} w=cell2table(v) %------the code--------------- a=table2cell...

10 years ago | 1

| accepted

Answered
how to get correct value on division in matlab
Use vpa function

10 years ago | 2

Answered
Plot many filled circles
p= [0 0;1 2;-2 1;4 -2;-3 -3]; r=[1 2 3 4 5] alpha=-pi:0.01:pi x=cos(alpha) y=sin(alpha) for ii=1:numel(r) fill(r(ii)...

10 years ago | 0

| accepted

Answered
how can i get the data from 3D graph? xyz
%-----Example------------ x=1:100 y=1:100 [X,Y]=meshgrid(x,y) Z=sin(X).^2+cos(Y).^2 mesh(X,Y,Z) %------------------- ch...

10 years ago | 2

Answered
How to download 32 bit trial matlab?
R2016a, Windows 32-bit operating systems are no longer supported. You can download an earlier version R2015b <https://www.math...

10 years ago | 0

Answered
error reading using xlsread
[num,txt,Rawdata] = xlsread ('MAE 525 HW5 Soln.xlsx'); CO2_meas = num(16:end,2); CO_meas = num(16:end,3); result = CO2_...

10 years ago | 0

| accepted

Answered
Concatenate a 10x4x40 Double Matrix to 40x4
A=rand(10,4,40) B=permute(A(1,:,:),[2 1 3]) out=B(:,:)'

10 years ago | 0

| accepted

Answered
Extracting fields from structures with varying names.
You can use fieldnames function <http://www.mathworks.com/help/matlab/ref/fieldnames.html>

10 years ago | 0

Answered
How do i calculate a matrix of functions run for a number of values and save the matrix for each value
f=@(n)[cosd(n).^2, sind(n).^2, -2.*sind(n).*cosd(n); sind(n).^2, cosd(n).^2, 2.*sind(n).*cosd(n); sind(n).*cosd(n), ...

10 years ago | 0

Answered
Matrix value comparison of values
M1(M1>M2)=nan

10 years ago | 0

| accepted

Answered
add elements in a matrix
A=[1 2 3 3 1 2 2 1 3;3 2 1 1 3 2 2 3 1]; ff=numel(A(1,1:3:end))-1; [n,m]=size(A); [ii,jj]=ndgrid(1:n,1:m); AA=[A A]; out=...

10 years ago | 0

Answered
how to use datetick?
q=datevec(x) [~,ii]=unique(q(:,1:2),'rows') a=q(ii,:) a=a(1:3:end,:) xt=datenum(a) plot(x,y,'.') set(gca,'xtick',xt) da...

10 years ago | 0

| accepted

Answered
How can I specify a summation constraint?
syms p13 p14 p15 p23 p24 p25 p34 p35 p45 P =[ 0, 1/5, p13, p14, p15 0, 0, p23, p24, p25 0, 0, 0, p34, p35 0, ...

10 years ago | 0

Load more