Answered
change array into matrix
Use the |<http://www.mathworks.com/help/matlab/ref/reshape.html reshape>| command. b = reshape(a,2,2)

12 years ago | 0

| accepted

Answered
help-While and for loops
Simply save the speed and height data points into vectors: ... for ii = 1:length(t) ... v(ii) = speed(v0, ...

12 years ago | 0

Answered
Cells in MatLab R2013a?
Max, in the EDIT section in the main toolstrip in MATLAB hit [Insert], and there you go. <</matlabcentral/answers/uploaded_...

12 years ago | 0

Answered
ploting data from the rearranged data in excel
* First, don't increment loop indices (e.g. |c|). This is done automatically. * In the inner loop you keep overwriting |data(c,...

12 years ago | 0

| accepted

Answered
How to make residuals and X & Y data dimension equal?
Would just taking the transpose work? When a |vec| is |nx1|, then |vec'| is the equivalent |1xn| vector.

12 years ago | 0

| accepted

Answered
Within a single popup dialog box, how to request multiple user inputs to define variables?
Try prompt = {'Input dialog'}; name = 'Input dialog'; numlines = 2; dlg_ans = inputdlg(prompt, name, nu...

12 years ago | 0

| accepted

Answered
How to plot a graph with multiple y axis like this photo?
Ahmed, use the |<http://www.mathworks.com/help/matlab/ref/plotyy.html plotyy>| command.

12 years ago | 0

Answered
How Extract a value into a cell?
|A1{1}(2,1)-A1{1}(1,1)|

12 years ago | 0

Answered
How can I have a transposed?
Use |<http://www.mathworks.com/help/matlab/ref/cell2mat.html cell2mat>| and then transpose the matrix. |mat2cell| converts back ...

12 years ago | 0

| accepted

Answered
Plot X vs Y, but with two y-axes for different units
How about |plotyy(x,y,x,y/100)|? Of, course you can work with scaling such that you can see both plots reasonably well. In this ...

12 years ago | 0

Answered
Fit a circle to 3d dots
There is probably something not working with the way you rotate the circle back into the plane. This works: S1=[-15.8,8.6...

12 years ago | 0

| accepted

Answered
How to write datetime in a plot?
This should do: T0 = '131212'; T0Vec = [2000,0,0,str2double(T0(1:2)),str2double(T0(3:4)),str2double(T0(5:6))]; ...

12 years ago | 0

| accepted

Answered
put me out of my misery
Rizwana, first option works just fine. Make sure that |Z| is an |mxn| matrix, where |m| and |n| are the length of the two vector...

12 years ago | 0

Answered
how can I link the simscape tools with the commonaly used blocks in simulink in matlab.
Use the <http://www.mathworks.com/help/physmod/simscape/ref/pssimulinkconverter.html PS-Simulink Converter> and the correspondin...

12 years ago | 0

Answered
How do I add 2 specific channels out of 6 channels of data from a text file on the Y-Axis?
Use the |<http://www.mathworks.com/help/matlab/ref/plotyy.html plotyy>| command. That's exactly what you are looking for.

12 years ago | 0

| accepted

Answered
Events not consistently triggering with ODE45
Please verify that the solver returns the correct event values, |ye|, |te| (simply remove the semi-colon at the end of the ode45...

12 years ago | 0

| accepted

Answered
Can you help me solving that?
How about: A = [1 2 3 4 5 6]; b = [1 2 3]; C = zeros(size(A'*b)); for ii = 1:length(A) C(ii,:) = b + A(...

12 years ago | 0

| accepted

Answered
Matrix Multiplications (Altar Output Matrix Size)
OK, you mean something like: A = [1 2; 3 4; 5 6]; b = [1 3]; C = zeros(size(A)); for ii = 1:length(A(:,1)) ...

12 years ago | 0

Answered
How to solve 2nd order coupled ODE in Matlab using ode45 -or likewise function ?
Mahesh, it works just the same way. Something like: [t,XSol] = ode45(@myODE, tspan, X0) ... function Xd = myODE(t,X...

12 years ago | 1

Answered
change values in a matrix
Use the |<http://www.mathworks.com/help/matlab/ref/rem.html rem>| command: A = [0.1 -2.3] A = 0.100000000000000 -...

12 years ago | 1

Answered
changing color canvas when saving *.jpeg image
Meionly, have you tried > File > Export Setup..., then chose > Rendering? Check "Custom color" and pick a color of your liking, ...

12 years ago | 0

| accepted

Answered
how can I change the line properties of a figure?
As an alternative, open the figure, change it according to your requirements and *generate the corresponding MATLAB code* via Fi...

12 years ago | 1

Answered
??? Index exceeds matrix dimensions.
Captain, it's hard to say based on the code you provide. In the command line diff_E = abs_El0octet(index_E0) - q; you ar...

12 years ago | 0

Answered
Undefined function 'pout2' for input arguments of type 'double'.
Hello Ashly, in your code outage_f(j)=((pout1(j,:)+sum(pout2(j,N-k+1:N))+ pout3)/N); |pout2| is not defined because you ...

12 years ago | 0

Answered
Smooth function does not available in Matlab 2013a?
Do you have the Curve Fitting Toolbox installed and licensed? Try which -all smooth See <http://www.mathworks.com/help/c...

12 years ago | 0

Answered
BeagleBoard Stand-alone operation with Simulink
Hello Pierre, if you have deployed your model to the board using the [Deploy to Hardware] button the model should be running on ...

12 years ago | 0

Answered
How to access randomly selected index in nested structures
How about fileName=structName(i).nestedStructName(randi(365,1)).name Is this what you are looking for?

12 years ago | 0

Answered
how to sort Indices of a circle in a 3d plane clockwise?
From the |x| and |y| data (from ind.mat) compute the polar angles of the dots using |atan2|. Add the polar angles as the fourth ...

12 years ago | 0

| accepted

Answered
Plotting array by array
The standard plot uses the same x-axis values for all plots, e.g., |plot(x,y1,x,y2)| |y1| and |y2| would be your average r...

12 years ago | 0

Answered
save matrix....load matrix
Use save('A.mat','A') and the corresponding |<http://www.mathworks.com/help/matlab/ref/load.html load>|.

12 years ago | 4

Load more