답변 있음
problem with input arguments
If you execute the |which| command in the command window do you get which tempo tempo is a variable. which t_media_fi...

대략 12년 전 | 0

답변 있음
How to join several matrices into one matrix?
Martha, check out the <http://www.mathworks.com/help/matlab/ref/squeeze.html |squeeze|> command. An example: Y(:,:,1) = [1;...

대략 12년 전 | 1

| 수락됨

답변 있음
function int for simulink
Kushal, check out the <http://www.mathworks.com/help/simulink/slref/datatypeconversion.html Data Type Conversion> block.

대략 12년 전 | 0

| 수락됨

답변 있음
How can I insert data info. in plot?
You could simply put a text label next or close to a data point: text(x_pos,y_pos,text_lab) where |x_pos| and |y_pos| are...

대략 12년 전 | 3

| 수락됨

답변 있음
Help with basic fitting
Try [p,S] = polyfit(x,y,1) The two elements of |p| are the coefficients |m| and |q| you are looking for.

대략 12년 전 | 1

| 수락됨

답변 있음
How to plot phase plane in MATLAB?
Alex, assuming that you are talking about a |u-w| (position-velocity, sort of) phase plot, here you go. Essentially, you only ...

대략 12년 전 | 12

| 수락됨

답변 있음
How do you plot a graph with various initial data?
Something like this: A_vec = [3.0; 3.3; 3.6]; % define your different A vals figure hold all ...

대략 12년 전 | 0

| 수락됨

답변 있음
Sum of an arrays elements
I'd assume C = [1 2 3]; res = sum(C.^2) What is the input, what is the expected result?

대략 12년 전 | 0

| 수락됨

답변 있음
need you help please please
John, for the first one, use ans1 = [a b'; d B] it's simply putting together vectors and matrices in the correct order. ...

대략 12년 전 | 0

답변 있음
I have a problem with (undefined functions) in image processing toolbox
Nora, you possibly have not installed/licensed the corresponding toolbox(es). What do you get when you execute in the MATLAB com...

대략 12년 전 | 0

답변 있음
Is it possible to use Computer Vision System Toolbox in Matlab R2013a student version
Mahesh, the Computer Vision Toolbox is not included in the <http://www.mathworks.com/academia/student_version/ MATLAB Student Ve...

대략 12년 전 | 1

| 수락됨

답변 있음
function plotting in matlab
Rasmus, check out: x = 0:0.1:10; lambda = 2; a = 1; b = 1; x0 = 1; xc = 1; y = a*(x-...

대략 12년 전 | 0

| 수락됨

답변 있음
OK button does not work..
Oshin, use message = sprintf('Hello World!\nClick the OK button to continue'); instead. Notice the single prime (') in...

대략 12년 전 | 0

답변 있음
How to determine if there is a value in a string and output it as a boolean?
Amar, you could use a = 3; if find(A==a) ... end Note, that in your case |A| is *not a string* but numeric arra...

대략 12년 전 | 0

답변 있음
ode45 returns NaN for a system of differential equations?
Evan, the issue is the term (1-y(1)/t) at |t=0|. If you set |t0| for the integration time span slightly differently, such...

대략 12년 전 | 1

| 수락됨

답변 있음
Trying to use values from my function file, within a fplot command, is this possible?
Hello John, the step-size cannot be controlled. Check out <http://www.mathworks.com/matlabcentral/answers/90552-fplot-how-to-def...

대략 12년 전 | 0

| 수락됨

답변 있음
Reshape matrix with zero value
Looks like you just want to remove the diagonal elements. Check out <http://www.mathworks.de/matlabcentral/answers/668-which-mat...

대략 12년 전 | 1

| 수락됨

답변 있음
Need help using mesh and surf
Shawn, use [X,Y] = meshgrid(-10:0.5:10, -10:0.5:10); t = sqrt(X.^2 + Y.^2); Z = sin(t)./t; surf(X,Y,Z)

대략 12년 전 | 0

| 수락됨

답변 있음
Find the first column in a matrix that contains at least 1 non zero..
Austin, here you go: function [p] = Findfirst(A,currentRow) [m n]=size(A); p=n; for i=currentRow:m for j=1:n ...

대략 12년 전 | 0

| 수락됨

답변 있음
Matrix, struct, array, comparison
Francesco, loop through the eight cells and use <http://www.mathworks.com/help/matlab/ref/isequal.html |isequal|> to compare the...

대략 12년 전 | 0

| 수락됨

답변 있음
WHY do i get Error "Undefined function or variable"
Phoebe, I assume that your code never enters the |if|-construct. If you remove the semi-colon from diagcounter=diagcounter+1...

대략 12년 전 | 0

답변 있음
Row vector, array matrix
OK. Provided that the zeros appear periodically *just the way you have shown in your code*, you could use indz = find(A==0);...

대략 12년 전 | 0

| 수락됨

답변 있음
Xlsread command in Matlab
Francesco, with |xlsread| you read the entire spreadsheet. Which means, that you can read an entire matrix as is, at once. E.g.,...

대략 12년 전 | 0

| 수락됨

답변 있음
Row vector into array.
Francesco, you could use A(A == 0) = []; B = reshape(A,8,8) for your specially formatted matrix |A|, where the zeros ar...

대략 12년 전 | 1

| 수락됨

답변 있음
how to put one dimensional data to two dimensional array?
Lee, try something like A(:,jj - index_start + 1) = data(j).data(:,6); This will put the first column that is read into...

대략 12년 전 | 0

| 수락됨

답변 있음
Create a non-rectangular array
Michael, have a look at cell arrays: c = {[1]; [2, 3, 4]; [5, 9]; [6, 7, 8, 10, 11, 12]}; c{2} ...

대략 12년 전 | 0

| 수락됨

답변 있음
Opening diffrent ezplot in a new/multiple window
Hello Dennis, put a |figure| command between each of the |ezplot| commmands. Alternatively, try and see how you like this one...

대략 12년 전 | 0

답변 있음
How do I activate MATLAB (student version)
Please contact <http://www.mathworks.com/support/contact_us/ *Install (Tech) Support*> to request a new serial number. Note: ...

대략 12년 전 | 0

답변 있음
Solving equation involving trigonometry matrices with different row and column
Rahimi, use e.*sin(f.*(g - h')) To do element-wise multiplication you need to use the |.*| operator, the prime |'| turns ...

대략 12년 전 | 1

| 수락됨

답변 있음
How can I plot two irregular time series in one plot?
Sure, see for example: x1 = 0:pi/10:3*pi; x2 = 0:2:20; y1 = sin(x1); y2 = rand(length(x2),1); plot(x1,y1,x2,y2)...

대략 12년 전 | 0

| 수락됨

더 보기