Answered
ordinary differential equation
Use *ode45*: L=55.863; D=15.484; E=200*10^9; I=138; P=440*10^6; ode45(@(t,theta)((P*L^2)/(E*I))*sin(theta*D/L),[1198 1990],...

14 years ago | 0

Answered
zooming the data waves
It should help: <http://www.mathworks.com/help/techdoc/ref/linkaxes.html>

14 years ago | 0

Answered
When to use find, loops or if?
Start solve your task by reading this topic: <http://www.mathworks.com/support/tech-notes/1400/1403.html Reading Data Files int...

14 years ago | 0

Answered
How to print in the same line
Use *fprintf* instead of disp. clear all clc m=2; for i=1:8 if(m==2) for i=1:8 fprintf(...

14 years ago | 1

Answered
surfC with 4 vectors
Use *reshape* function, or interpolate the data: <http://www.mathworks.com/help/techdoc/ref/triscatteredinterp.html>

14 years ago | 0

| accepted

Answered
error using ode45 in gui
Replace line: [t,c,te,ze,ie] = ode45('fnflatfiredragwind',tspan,c0,options,w1,w2,w3,k); with: [t,c,te,ze,ie] = od...

14 years ago | 0

Answered
How can I control GUI layout form?
<http://www.mathworks.com/matlabcentral/answers/14994-how-to-create-a-number-of-edit-text-feilds-in-a-gui-depending-on-the-user-...

14 years ago | 0

Answered
separate lines on 2d graph using two separate pairs of vectors
% generate some data x1 = rand(); y1 = rand(); m1 = rand(); n1 = rand(); x2 = rand(); y2 = rand(); m2 = ...

14 years ago | 0

Answered
How to write the codes to find out constants a,b and c;by using inside the best fit with y=b+c*exp(a*t)
First of all read this thread: <http://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers...

14 years ago | 0

Answered
Help with this MATLAB GUI code
In this line: [X,Y] = meshgrid(-10:0.1:10); You overwrite _X_ and _Y_.

14 years ago | 0

Answered
Ordering graphics objects
Command _plot(x)_ is equivalent to _plot(1:numel(x),x)_. In your example the rectangle is placed before the line on the x axis. ...

14 years ago | 0

| accepted

Answered
Command for basic fitting
To find the coefficients of a polynomial of degree n use *polyfit* function. Alternatively use the option: File -> Generate M...

14 years ago | 0

| accepted

Answered
PDEPE function
Yes it is possible in pdefun :) Look at example: function diffusion m = 0; x = linspace(0,1,20); t = linspace(0,2,5...

14 years ago | 0

| accepted

Answered
How to check efficiency of my code?
See: <http://www.mathworks.com/help/techdoc/ref/profile.html Profile execution time for function.>

14 years ago | 0

Answered
finding value index within a range
With *find* function: a = [ 1 2 3 4 5 6 7 8 9]; [row, col] = find(...

14 years ago | 4

| accepted

Answered
Undefined function or method 'lt' for input arguments of type 'cell'
_lt_ means Less than: A < B And probably expression: (Configurations.Ramp_Down_No_RB_Alloc_Change_Bottom_Limit{1,1} - Rlx...

14 years ago | 0

| accepted

Answered
Convert a Matrix to Struct ?
Why do you want to create a struct? Maybe just remove the spaces? a = [0 1 1 0 0 1 0 1]; b = regexprep(num2str(a),'\...

14 years ago | 0

Answered
Kindly explain this command
Option _Uniform_ or _UniformOutput_ set to _0_ (or _false_) means, that output from function will be stored in cell array. It is...

14 years ago | 1

| accepted

Answered
Plotting a line x=constant
Another option: line([x x],[y(1) y(end)],'LineWidth',10)

14 years ago | 7

| accepted

Answered
Help with graphing two Y-axes - how to scale the axes to each other
Maybe use *plotyy* function instead of scaling. See: <http://www.mathworks.com/help/techdoc/ref/plotyy.html>

14 years ago | 0

Answered
finding number of a column in a cell (column that contains a specified string)
See in documentation: doc strfind strfind(CELL,'a')

14 years ago | 1

Answered
Run function with input variable from linux terminal
Simple example: matlab -nosplash -nodesktop -r "ezplot('x')" To run function 'function_name' in 'you directory' type in...

14 years ago | 3

Answered
BVP with no solution
I agree with you. Just wonder if you can check the existence of a solution before attempting a solution. The example above is tr...

14 years ago | 0

Answered
Split a vector
Split to one matrix: n = 20; % create vector a a = 1:n; m = cell2mat(arrayfun(@(x)a(x:x+9)',1:n-9,'UniformOutput',false...

14 years ago | 0

| accepted

Answered
stem problem
I suggest you to use *quiver* function: y = 0:10; u = 25-(y-5).^2; quiver(0*y,y,u,0*u) Of course you can do it with *ste...

14 years ago | 0

| accepted

Answered
button to activate textboxes in GUI
You have to create callback function: <http://www.mathworks.com/help/techdoc/matlab_prog/f9-39541.html>

14 years ago | 0

Question


BVP with no solution
Consider the equation: |y'' + y = 0| with boundary conditions: |y(0) = 1, y(π) = 1| In this case BVP has no solutio...

14 years ago | 2 answers | 0

2

answers

Answered
Making complex(ish) bar graphs?
Something like this: y = rand(4,1)*10+10; bar([1,2],y(1:2),'r') hold on bar([3.5,4.5],y(3:4),'g') set(gca,'xtick',[1 ...

14 years ago | 0

Answered
coloring the individual data in a plot
Use *hold all* before *plot* and *legend* after. For example: x = -6:.1:6; hold all for k=1:5 y = exp(...

14 years ago | 0

Answered
randomising a given matrics
I'll try to answer :) % test matrix a = reshape(1:100,10,10) % randomize - mixing idx = reshape(randperm(numel(a)),10,1...

14 years ago | 0

| accepted

Load more