How can I vectorize these loops in Matlab?
[code]function[Y] = busadmittance(z)
ne = z(:,1); nt = z(:,2); r = z(:,3); x = z(:,4); lines = length(ne);
buses = max(max(ne), max(nt)); ...
0
753
Add new column with header to csv Matlab
I have an csv file with column headers (strings) and data. I then want to add a new column with a specific header 'My new header' and data is stored i ...
0
753
MATLAB nested loop
[code]function[output]=tridiag(d,l,r)
A=zeros(3);
for i=1:5
A(i,i)=d(i);
for j=2:5
A(j,(i-1))=l(j);
for k=1:4
A(k ...
0
753
Get the value of an array from another array in Matlab
I have an array A 20x1 double and another array B which is 1000x1 double. I want to set array C where array C will be 1000x1 double where the first va ...
0
753
How to integrate an element in an image according to the intensity?
I have a squared image img that I cut in two parts vertically, I calculate the mean of intensity in each part and then I compare these means with mini ...
0
753
Sending specific time values from matlab to arduino
I am reading a audio signal from a file in matlab. I used a stft on it, squared the magnitudes and summed all of them togther. Bascially, I have one p ...
0
753
Plot the cylinder in Matlab
can anyone help me to solve the task: Plot the cylinder ((x-1)^2)/4 + y^2=4 for -1<=z<=1 by using the cylinder function. The cylinder shall begi ...
0
753
An array of variable-length arrays of integer numbers in matlab
I want to create an array of variable-length arrays of integer numbers in matlab. In fact i want to create a set of paths and I want to have the index ...
0
753
Export R list into Matlab cell-array
I have searched everywhere and I'm currently unable to find a solution to my issue.
I have a list created under Rstudio which is made of matrices lis ...
0
753
Putting arrows in a Matlab figure showing orientation of axes
I have plotted a VCG curve in Matlab using my code and data downloaded from physionet. Now I need to achieve arrows in the figure showing the orientat ...
0
753





































