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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

Respondida
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]);

más de 10 años hace | 0

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

más de 10 años hace | 0

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

más de 10 años hace | 0

Respondida
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

más de 10 años hace | 0

Respondida
How can you force writetable() to clear an existing excel file and rewrite it with the same file name and with new data?
Delete the file !del file.xlsx %or rename it

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 4

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 1

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 2

Respondida
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)

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 1

| aceptada

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

más de 10 años hace | 2

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 2

Respondida
How can I use data from excel as input in a function, when the data is to long to put into the "Run" at the top of the script window?
Use xlsread function to import your data

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

Respondida
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), ...

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

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

más de 10 años hace | 0

| aceptada

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

más de 10 años hace | 0

Cargar más