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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

Beantwortet
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

mehr als 10 Jahre vor | 0

Beantwortet
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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 4

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 1

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 2

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 1

| akzeptiert

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

mehr als 10 Jahre vor | 2

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 2

Beantwortet
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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

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

mehr als 10 Jahre vor | 0

| akzeptiert

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

mehr als 10 Jahre vor | 0

Mehr laden