Answered
How to regress with the simple model like y=kx or y=k/x
When you are sure that he model without constant is appropriate for the data you can use it withous column of ones. % firs...

14 years ago | 0

Answered
Make Candle chart more Readable.
Something like that: load disney.mat candle(dis('3/31/98::4/30/98')) title('Disney 3/31/98 to 4/30/98') ch = get(g...

14 years ago | 2

| accepted

Answered
Finding Linearity
My idea is as follows: fit line to x & y data, next fit to x(1:end-1) & y(1:end-1), next x(1:end-2) & etc. Then check to which p...

14 years ago | 0

Answered
Basic Axes modification
plot(1:10) 1.: set(gca,'FontSize',14) 3.: box off 2.: You have to create subplots manually, for example: ...

14 years ago | 0

Answered
weighted fit
Look at example code: % generate data x = 0:.1:10; y = x.*x + randn(size(x)); w = linspace(.5, .7,length(x)); x...

14 years ago | 0

| accepted

Answered
How can I access the String properties of edit uicontrols and use them to calculate and send the result to a text uicontrol?
Use *set* and *get* command. Look at simple example: function test figure('Position',[150 100 900 400]); uicontrol('S...

14 years ago | 0

Answered
animation in matlab?
There is a lot of options. The main idea is as follows: * create an object (for example line) * change it propeties in a loop ...

14 years ago | 1

| accepted

Answered
progress indicator in GUI
Try in this way (you can also add progress bar): function test uicontrol('Style','pushbutton','String','Start','callback...

14 years ago | 0

| accepted

Answered
What is your unusual use of MATLAB?
My cat likes to chase the laser pointer. Once the battery has run out and I wrote a few lines of code to give him the entertainm...

14 years ago | 16

| accepted

Answered
MATLAB in unexpected places
<http://youtu.be/hyzwxD33LcI> <http://img504.imageshack.us/img504/8388/dailypicdump640155.jpg> <http://www.ecrater.co.uk/p...

14 years ago | 0

Answered
Why do you come to "MATLAB Answers"?
There is not enough questions on Polish forum :) - <http://www.matlab.pl/index.php> Moreover: a - b - c - j (exercise my Engl...

14 years ago | 1

Answered
Dumb mistakes we make with MATLAB.
Sometimes I make a typo in structure field name, for example: my_struct.field1 = 1 and then: my_struct.filed1 = 2 ...

14 years ago | 0

Answered
replce all hyphens(-) in .txt file with 0
Suppose that you have test file: 1.0-, 2.0 1.2-, -2.3 -1.4-, 2.6 code: fid1 = fopen('test','r'); fid2 = fopen('test...

14 years ago | 0

| accepted

Answered
PDEPE: Unable to meet integration tolerances
Are you sure that boundary conditions are correct? Maybe one minus is unnecessary? % boundary conditions ...

14 years ago | 1

| accepted

Answered
addpath question
Try in this way: eval(['addpath(''',pax300_top_level,'/Ambient'')']) It should work on two systems.

14 years ago | 1

Answered
how to plot sinc squared 3*(theta) in rectangular and polar coordinates?
See in documentation: doc ezplot doc ezpolar

14 years ago | 0

Answered
matrix operation
You can delete column in this way: a = rand(50); a(:,3) = [];% deletes 3rd column For other questions see documentation: ...

14 years ago | 1

| accepted

Answered
Returning largest and smallest values in the array
See documentation: doc min doc max See also: <http://www.mathworks.com/matlabcentral/fileexchange/4709-min-max-for-arrays>

14 years ago | 1

Answered
Calculate area from plot
Simple idea (not very accurate): test: t = 0:.01:2*pi; hold on P = 0; for k=1:10 x0 = k^2; y0 = 10*...

14 years ago | 0

Answered
Evaluating the area between two curves.
<http://www.mathworks.com/matlabcentral/answers/15551-how-to-compute-for-the-points-of-intersection-of-2-curves> <http://www.ma...

14 years ago | 2

Answered
Regarding .mat file.
[X,map] = imread('your_image.tif'); save your_mat_file X map

14 years ago | 1

| accepted

Answered
convert velocity to displacement
Displacement counts as the time integral of velocity. Displacement in time: data = [linspace(0,10,100)' rand(100,1)]; cumt...

14 years ago | 0

Answered
Data acquisition (Analog Input)
Probably yes. Type ver in command window. It displays info about your Matlab products. ver daq

14 years ago | 0

| accepted

Answered
tiling pre-existing plots into a figure
figure plot(1:10) figure semilogx(1:10) figure semilogy(1:10) figure bar(1:10,rand(1,10)) a = find...

14 years ago | 3

Answered
how read this file?
doc fopen doc fread doc fgetl doc fclose

14 years ago | 0

| accepted

Answered
how to create a Matlab program computing area between 2 curves.
1: doc input 2: doc solve doc syms doc eval doc subs <http://www.mathworks.com/matlabcentral/answers/15551-h...

14 years ago | 0

Answered
how to compute for the POINTS OF INTERSECTION of 2 curves??
Using symbolic computation (Symbolic Math Toolbox). For example: syms x y1 = 2*x+x*x; y2 = -x^2 + 2; ezplot(y1) hold al...

14 years ago | 1

Answered
how to use of GUI?
You mean button?:) function [] = Mohammad() M = figure('units','pixels',... 'position',[500 500 200 50],... ...

14 years ago | 0

Answered
Changing directories in the middle of a GUI function
I suggest to use run function instead of change directory. But if you want to change the directory, here is a code: orgDir =...

14 years ago | 0

| accepted

Answered
how to use of GUI?
First you have to create *.mat file: X = rand(10); save Xvar X And possible solution: function [] = Mohammad() M...

14 years ago | 0

| accepted

Load more