Answered
display an animated image
* |[a,b] = imread('http://www.animatedgif.net/arrowpointers/arrow20_e0.gif','frames','all');| * |implay(a)|

14 years ago | 1

Answered
How do I obtain sampling points inside a pre-defined triangle?
This link may give a good example: http://www.mathworks.com/matlabcentral/fileexchange/31892-generation-of-solid-shapes-using-ra...

14 years ago | 1

Answered
How to plot a excisting graph in a different figure on a certain position on the x-axis
You can give the dataset 2 an offset: *Edit* plot(x1,y1) hold on offset = x2(1)-x1(a); plot(x2-offset,y2)

14 years ago | 0

Answered
Matching two time series by one of their time vector
If you have: t1 = [1 0.2 2 0.4 3 0.3 4 1.4 5 0.1 6 0.9]; t2 ...

14 years ago | 0

| accepted

Answered
Data between 2 diferent windows
% Ask for the number of rows out = inputdlg('How many rows?'); % You should fill the uitable no matter what (I chose zer...

14 years ago | 0

| accepted

Answered
count each row white pixels from the bottom to the top
The loop is unnecessary. % First element of |counts| is the last row count: counts(size(BW,1):-1:1,:) = sum(BW == 1,2); or ...

14 years ago | 0

| accepted

Answered
change text in a msgbox
% Create a msgbox h = msgbox('Hi'); % Change just the message set(findobj(h,'Tag','MessageBox'),'String','How are y...

14 years ago | 2

| accepted

Answered
how to remove decimals
fix(10.2)

14 years ago | 9

Answered
How does one use bar() to show multiple bars for a single X-axis value?
bar([10 20; NaN NaN]) set(gca,'xlim',[0 2],'xtick',1)

14 years ago | 0

Answered
text file dlmwrite fprintf save
The version with fprintf: % Sample data data = rand(49,2); szData = size(data); % Generate all filenames at on...

14 years ago | 0

Answered
Need some help setting up a function for elementary data filtering
1. abs(A(:,7)) 2. idx = A(:,8)>= 0; A = A(~idx,:); Last two up to you.

14 years ago | 0

| accepted

Answered
Array question
idx = 2:10 a = b(i-d);

14 years ago | 1

| accepted

Answered
Error when using distributive property
The propagation of floating approximations is different: idx = abs(compute(1:100) - distributed(1:100)) > 2*eps nnz(idx)...

14 years ago | 0

| accepted

Answered
Fixed income toolbox - curve fitting
I don't think you can do that. You should code the function yourself and fit it. Here's a link that may be of some help: htt...

14 years ago | 0

Answered
Creating a loop to use all columns in a dataset array
data = dataset({('a':'z').','names'},{rand(26,2),'mv1','mv2'}); *EDIT* % Retrieve column names/variables (from second onward...

14 years ago | 1

| accepted

Answered
lscov regstats and weighted least squares (WLS)
Use the http://www.mathworks.com/support/service_requests/contact_support.do?s_cid=mwa-cmlndesr then *technical support* -> *req...

14 years ago | 0

Answered
How to delete from MS Access database using GUI interface
exec(conn, ['DELETE FROM Table1 WHERE ID =' sprintf('%f', handles.edit28)]); * You cannot |DELETE| some columns and others ...

14 years ago | 0

Answered
versatile date conversion
% Suppose you have a cellstring with dates in your third format: s = {'2011-07-25T16:00:12-08:00' '2011-07-25T16:00...

14 years ago | 0

Answered
changes of data
char(b{:})

14 years ago | 0

Answered
variable name length exceeds 63 characters
Cannot help, but why do you need such long names? Names are meant to identify quickly a variable, if you're trying to include ...

14 years ago | 1

Answered
GUI buttons with two rows
h = uicontrol('style','push','position',[20 20 100 80],'max',10,... 'String', '<html>Treudd (14)<br>Ob4T6 + 3 ...

14 years ago | 4

| accepted

Answered
How to update database with whereclause using variable as ID and launching it from a GUI
You cannot supply the where clause in that way. You are saying update the columns indicated in |colnames| with the values conta...

14 years ago | 1

| accepted

Answered
Animated graphs plotting problem!?!
You can use |hold on| but in general if you're updating the graph, it's not a good idea to replot every time. You should call c...

14 years ago | 0

| accepted

Answered
problem using switch with logical operators, (larger than do this or less than do this)
Switch doesn't work the way you expect it, for: pos = -1e4 pos == 0 --> false pos < 0 --> true pos > 0 --> false ...

14 years ago | 2

| accepted

Answered
File import
fid = fopen('yourpath.txt'); out = textscan(fid,'%f%f%f%*f','CollectOutput',1); out = sum(bsxfun(@times, out{1}, [100 10...

14 years ago | 0

Answered
plotting data in a loop
Is this what you're trying to achieve? A = rand(10,1); B = rand(10,1); hh = bar([A B], 'stacked'); for n = 1:10 ...

14 years ago | 0

Answered
Unique and Length of every rows of a matrix
A = randi([1 256],100,256); szA = size(A); B = cell(szA(1),1); for n = 1:szA(1) B{n} = unique(A(n,:)); end ...

14 years ago | 0

| accepted

Answered
Not overwriting array in if-elseif loop
Preallocate M before the loop and index it inside the loop: M = zeros(length(yarray)-1,4); for... M(k,:) = ...

14 years ago | 0

| accepted

Answered
dlmwrite -append problems when writing char and numbers to .txt file
If you have an example input as, use fprintf: out = {'"TANZANIA,UNITED REPUBLIC OF"','TZ03MSKR','MUSEKERA',-9.3,33.6,12,'1/...

14 years ago | 1

| accepted

Load more