Answered
アナログ電圧を取得する方法はありますか
<https://in.mathworks.com/help/supportpkg/arduinoio/ref/readvoltage.html>

8 years ago | 1

Answered
if loop with multiple conditions
k=1:80 idx = ( k >= 1 & k <= 14 | k >=29 & k <= 33 | k >= 69 & k <=73) k(idx)=[]

8 years ago | 0

| accepted

Answered
How to use a variable only defined in a function in your script?
x0=0 theta_min=deg2rad(10); theta_max=deg2rad(60); y0=2; v0=3; theta=angle1(theta_min,theta_max) for i=1:len...

8 years ago | 0

Answered
How do I extract value from a Cell array to text file or CSV file?
|*EDITED*| the_xd_cell=load('the_xd_cell.mat') the_xd_cell1(1,:)=the_xd_cell.the_xd_cell{1} the_xd_cell2(1...

8 years ago | 0

| accepted

Answered
format data into string and write a txt file
a={[1E5 0 0 7.82E12 0] [-1 0 0 -1 0]}; dlmwrite('sample.txt',a,'delimiter','\t','precision','%0.16e')

8 years ago | 0

Answered
Divide 3D image to 5*5*5 blocks with out overlap
Might help : *<https://www.mathworks.com/matlabcentral/answers/324809-how-to-divide-an-image-into-non-overlapping-blocks#an...

8 years ago | 0

| accepted

Answered
How can I find all the minimum values in table using a for-loop (which has Ties)?
Month = [01 02 03 04 05 06]'; Price = [99 58 94 58 87 91]'; Count = [10 30 20 27 05 04]'; A = Price ind = 1; mi...

8 years ago | 3

| accepted

Answered
I would like my simple experimantal while loop to accept empty arrays and not jump out of the loop. what should i do?
Use isempty() returns one if the argument is empty and continue to skip the iteration

8 years ago | 0

Answered
I have Installed 2017a with File Installation Key But it shows following Warning
If your a student it will automatically renew by itself

8 years ago | 0

Answered
how to read column under a string in a text file?
opts = detectImportOptions('123.txt'); opts.SelectedVariableNames = {'FOE'}; T=readtable('123.txt',opts); FOE=tab...

8 years ago | 1

Answered
trying to use xlswrite, but Matlab just locked up for over 30 minutes
try to use <https://in.mathworks.com/help/matlab/ref/writetable.html *writetable()*>

8 years ago | 0

Answered
Enable tabs position in Editor
drag the file and put it on the editor, see *<https://in.mathworks.com/matlabcentral/answers/300089-why-do-i-not-see-tabs-in-the...

8 years ago | 0

Answered
Replace for loop with matrix function, for function acting on matrix columns
n = 100; p = 35; M = rand(n,p) L = rand(n,n) N = sum(L./M)

8 years ago | 0

Answered
How to save each iteration in cell array?
c=cell(zeros(1,12)) for ii = 1:12. %edited after sir Image Analyst's comment c{ii}= %do something; end

8 years ago | 0

Answered
Concatenate rows of cell into one column
A= { [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]} c = (cell2mat(A)) C = [{c(1,:)} ;{c(2,:)}] celldisp...

8 years ago | 0

Answered
If statement that transposes a vector if the size is not according to a specified size
a= [1;2;3] b = tans(a) function b = tans(a) [m,n]=size(a) if n==1 b = a.' else error('input not a col...

8 years ago | 0

| accepted

Answered
how to convert a vector to a matrix in different ways
>> a = [ 2 5 6 7 8 9] a=flip(reshape(a,3,2)); a([1 3])=a([3 1]); a([3 6])=a([6 3]) ...

8 years ago | 0

Answered
Extracting zeros from vectors
>> S=[1 0 0 2 3 0 0 0 2 1 0 4 0 0 0 0 1 0 2] S =nonzeros(S)' S = Columns 1 through 13 1 ...

8 years ago | 0

| accepted

Answered
how to formulate logical matrix in a loop?
A=[1,2,3,4,5,6,7,8,9,10] RESULT = zeros(1,numel(A)); RESULT1= RESULT; for i = 1:numel(A) idx(i)=A(i)==1; idx1(i...

8 years ago | 1

Answered
how i can get the first column ?
load matlab.mat for i = 1:7 c.datas(i,:)=mydata{1,i}(1:end,1) end datas=c.datas %each row represents first column ...

8 years ago | 1

| accepted

Answered
How to plot dots?
i=1; 'on' while dxBall(i) >= -10 % update point & text for ball 1 plot(tball(i),xBall(i),'o') hold...

8 years ago | 0

Answered
how can do many loops
ro=0.01:0.01:0.5 alpha=0.25:0.25:4 beta=0.25:0.25:4 for i = 1:numel(ro) ...

8 years ago | 0

| accepted

Answered
Is it possible to change the user in the license file?
contact your IT department in your university they can fix this issue also see <https://in.mathworks.com/matlabcentral/answers/9...

8 years ago | 1

Answered
draw vertical lines at regular intervals in a rectangle in matlab
use my <https://in.mathworks.com/matlabcentral/fileexchange/67603-vertical-line *FEX*> its compact and easy to use

8 years ago | 0

Answered
For loop with running parameter out of struct
for i=1:100 Test.x(i)=i ; %an example Test.y(i)=x.^(i) ; end save('mymat.mat',Test)

8 years ago | 0

Answered
contourfを用いたプロットにおける特定色の透明化
see <https://in.mathworks.com/matlabcentral/answers/60106-how-to-make-one-contour-transparent-in-contourf#answer_72640> similar ...

8 years ago | 1

Answered
Find the rows with specific value for each column
a=randi([1 10],4,10) [row,col]=find(ismember(a,10)); col %represents in which column the value is

8 years ago | 0

Answered
Hi, How to increase the line size by using a command not manually because I have many lines can't adjust each one individually. Thanks
Use (...'MarkerSize',10) inside plot command 10 denotes the size of the star

8 years ago | 0

| accepted

Answered
work with huge matrix
As you said it’s also better you split the main huge matrix into subsets using rows which are few compared to columns

8 years ago | 0

Load more