답변 있음
I need a help when importing data by using uiimport!
Le Huy, the data is accessible through A.NewTextDocument or, if you want to access individual elements, e.g., A.NewTe...

거의 12년 전 | 1

| 수락됨

답변 있음
How do I count the number of zeros in a matrix?
Caroline, use numberOfZeros = sum(data(:)==0)

거의 12년 전 | 12

답변 있음
How to combine multiple columns into a single column?
Cloris, use <http://www.mathworks.de/de/help/matlab/ref/reshape.html |reshape|> datacol = reshape(data, 12*163, [])

거의 12년 전 | 2

답변 있음
Plot a function in 3D that can be either positive or negative?
Mahmoud, a quick fix would be to add hold on Y = -(2.4.*X.^2.*Z.^2 - 9.6.*Z.^2 - 0.15.*X.^2 + 0.6); mesh (X,Y,Z) As ...

거의 12년 전 | 0

| 수락됨

답변 있음
How to solve an equation with one variable (x) including a "sum" from 1:n?
Tim, is the sum of all the 4 equation terms supposed to be equal to zero? If so, this should do syms x sol = vpa(sum((Z./1...

거의 12년 전 | 1

| 수락됨

답변 있음
Why does the “ Variable Time Delay” output incorract waveform in simulink ?
Lee, the reason is the step size. Decrease it and the signal will look more and more like a "perfect" square wave: CTRL+E (Confi...

거의 12년 전 | 2

| 수락됨

답변 있음
execute a loop until the condition is met
Dominika, if you want to simply continue the loop if the |if|-condition is not met then simply remove the |else|-condition part,...

거의 12년 전 | 0

답변 있음
Plotting errors with respect to the ''ground truth"
Ciuban, how about simply plot(A-B,'bd')

거의 12년 전 | 0

| 수락됨

답변 있음
how to plot cos60 in matlab?
Aacs, use line([0;cos(pi/3)],[0;sin(pi/3)])

거의 12년 전 | 0

답변 있음
Substracting two oscillating signals with different amplitudes in Simulink
James, check out the attached model. It does what you want to do with a subtraction block and should help get you started.

거의 12년 전 | 0

| 수락됨

답변 있음
How can I substitute values in a matrix if they equal a certain value?
Claire, you could use something like X3 = X1; X3(X1==255) = X2(X1==255);

거의 12년 전 | 0

| 수락됨

답변 있음
i want to build a database with column and rows
Bikash, use <http://www.mathworks.de/de/help/matlab/ref/table.html |table|>, e.g., NAME = {'ashok';'john';'horis'}; AGE ...

거의 12년 전 | 0

| 수락됨

답변 있음
looping a sequence easiest
Something like x0 = [zeros(1,276) ones(1,290)]; L = zeros(1,1000); b = (0:566); for ii = 1:1000 x = x0(randper...

거의 12년 전 | 0

| 수락됨

답변 있음
frequency response and bode diagram
Nuh, the input for a frequeny analysis using bode plots is a sine wave with varying frequency, which is exactly what you are inp...

거의 12년 전 | 0

답변 있음
how to open the example models in matlab 2014?
Rajasekar, here is one way: # In the Home ribbon go to |Help| > |Examples|. # In the UI that pops up search the documentati...

거의 12년 전 | 1

답변 있음
how can i solve an EDF?
Triki, use one of the numerical integrators, e.g. |ode45| function ODEsim() tspan = 0:0.1:10; % set up...

거의 12년 전 | 0

답변 있음
how to manipulate the output of a for loop to get the sum of the output data set
Segun, are you trying to compute the cumulative sum? A = 0; for f = [1 4 8 10] b = 2; c = 1; d = 1; n = 4; N =...

거의 12년 전 | 0

| 수락됨

답변 있음
How to get Index of matrix after Max and Min
Praveen, use something like ind = arrayfun(@(ii) find(a(ii,:)==min(a(ii,:),[],2)),1:size(a,1)); to get the column indices...

거의 12년 전 | 0

답변 있음
Display results in one matrix (nested for loops
Mihnea, you probably want X(i,j,k,l,m) = ... For large matrices you might want to pre-allocate memory: X = zeros(2,10...

거의 12년 전 | 2

| 수락됨

답변 있음
How does one produce an array of strings automatically?
Oliver, you could do n = 5; for ii = 1:n stringVector{ii} = strcat('v',int2str(ii)); end or simply stringVec...

거의 12년 전 | 1

| 수락됨

답변 있음
How can I calc permutations of two vectors?
Matteo, see this <http://www.mathworks.com/matlabcentral/answers/98191-how-can-i-obtain-all-possible-combinations-of-given-vecto...

거의 12년 전 | 1

| 수락됨

답변 있음
Update vector values and return to the program
Mane, not quite sure I understand. Do you want to read |ginput|'s over and over again (with some calculations in between)? Somet...

거의 12년 전 | 1

답변 있음
How to solve the dispersion relation in a symbolic expression?
Hello László, what about g = 9.81; S = 20; a = 1; H = @(k) a*k.*sqrt(g*k.*tanh(k*S)); k = -2:0.1:2; plot(k,H(k)) Of...

거의 12년 전 | 0

| 수락됨

답변 있음
In symbolic expression how to include an expression that is a function of the symbolic variable?
László, try g = @(x) x*(c*(x<=a) + b*(x>a)); and gh = @(x) g(x)*h(x);

거의 12년 전 | 0

| 수락됨

답변 있음
What interpolation method does the demosaic function use?
Daniel, <http://www.mathworks.de/de/help/images/ref/demosaic.html |demosaic|> uses "...gradient-corrected linear interpolation.....

거의 12년 전 | 0

답변 있음
How can I sum only few values in a diagonal matrix?
Rida, use sum(diag(A(1:3,1:3)))

거의 12년 전 | 2

| 수락됨

답변 있음
How can I calculate max and min in degree?
How about drift = max(abs(diff(phi))); By the way, how do you get 11°? Is that from a different set of data points not sh...

거의 12년 전 | 0

답변 있음
How can I plot these functions?
John, use dot-operators ( <http://www.mathworks.de/de/help/matlab/ref/rdivide.html element-wise division>) instead y1 = 1./(...

거의 12년 전 | 0

| 수락됨

답변 있음
Surface plot problem with mesh
Danila, remove shading interp;

거의 12년 전 | 0

| 수락됨

더 보기