Answered
About unique command problem
Doc says: [C,ia,ic] = unique(A,setOrder) and [C,ia,ic] = unique(A,'rows',setOrder) returns C in a specific order. se...

13 years ago | 0

| accepted

Answered
publish depfun in separate files, split by code sections
See <http://www.artefact.tk/software/matlab/m2html M2HTML: Documentation System for Matlab in HTML> and <http://www.m...

13 years ago | 1

Answered
Can I run MATLAB smoothly on Macbook air?
See <http://www.mathworks.com/matlabcentral/answers/11869 Matlab with MacBook Air>, <http://www.mathworks.se/matlabcentral/answe...

13 years ago | 0

Answered
Can we use more than one colormap in one plot ?
Yes, but it is not simple. See the links in my answer <http://www.mathworks.se/matlabcentral/answers/68939#answer_80274>

13 years ago | 0

Answered
Copying all files from a certain extension from all subfolders to main directory
See * <http://www.mathworks.se/matlabcentral/fileexchange/19550-recursive-directory-listing Recursive directory listing> * ...

13 years ago | 0

Answered
After Toolbox installation, Matlab does not run.
See <http://www.mathworks.se/support/contact_us/ts/popups/eligible.html Student Version Support> Student Version qualifies fo...

13 years ago | 0

Answered
How to handle 2 different colorbar in a single figure?
I'm guessing! There is no simple answer. It is a Matlab shortcomming. See * <http://www.mathworks.se/support/solutions/en/dat...

13 years ago | 1

Answered
Brush callbacks: what am I missing?
Run this script and try the brush. | 1 2| will be displayed in the command window. %% Script plot( 1:10, 1:1...

13 years ago | 1

| accepted

Answered
Matlab newbie - what is wrong with this script?
Remove the curly braces "{}" and try again.

13 years ago | 1

| accepted

Answered
Using TEXTSCAN to import an ASCII file with a header and blank lines between different data sets
Here is one of many alternate solutions. >> [ header, block_head, block_data ] = cssm() header = ' projec...

13 years ago | 2

Answered
Converting date/time stamp in output file to Matlab date/time
Hint 1: %% cac = { '2013/2/12-3h49:26' '2013/2/12-3h59:26' '2013/2/12-4h9:26' ...

13 years ago | 0

| accepted

Answered
Is this normal performance for matlab?
With R2012a,64bit,Win7,8GB R = sprand( 1000, 1000, 0.3 ); surf( R ) crashes my Matlab. Are you sure |surf| is sup...

13 years ago | 0

| accepted

Answered
Updating GUI plots with Timer
this command hold( handles.axes1 ) toggles hold. Try hold( handles.axes1, 'on' )

13 years ago | 0

| accepted

Answered
Why does findobj not work with annotation tags?
|findall| returns the hg-handle. However, I find it strange that |findobj| fails, since |HandleVisibility| is on (by default). M...

13 years ago | 0

| accepted

Answered
Comparing strings with and without ' '
I'm guessing >> cac={'Word'} cac = 'Word' >> str='Word' str = Word >> strcmp( str, cac...

13 years ago | 0

Answered
anyone could you tell me how to make it simple code?
ones( 8, 8 )

13 years ago | 0

| accepted

Answered
Xlswrite in a loop
>> alphabet = 'A':'Z'; >> alphabet(4) ans = D

13 years ago | 0

| accepted

Answered
Help with Simple Directory Operations
sad = dir( folder ); any( not( [ sad.isdir ] ) )

13 years ago | 0

| accepted

Answered
callbacks, timers and OOP methods: help with using a method as timer callback
The creation of the timer object could be % Sets a timer for progressing vehicle position Progress_Timer = timer ...

13 years ago | 0

Answered
Output of function not variable I assign
Try the call u = finitevolume_KG( 4 ) and make it a habit to end your functions with the keyword "end".

13 years ago | 1

Solved


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

13 years ago

Answered
Copy of one field of a structured array
One way to do it: >> C = cell2struct( num2cell([A.B]), {'B'} ) C = 5x1 struct array with fields: B ...

13 years ago | 0

| accepted

Answered
RUN POWERSHELL SCRIPTS PS1
See <http://www.mathworks.se/support/solutions/en/data/1-EV4ZDX/index.html?product=ML&solution=1-EV4ZDX How do I execute Powers...

13 years ago | 1

Answered
multiply each element of structured array, assignment of structured array
The short answer is NO, it is not possible. However, ... >> [A.B] = split( 2*[A.B] ) A = 1x3 struct array with...

13 years ago | 0

| accepted

Answered
Finding sequence in matrix
If * speed matters * the elements of the matrix are integers This old trick does it %% A= [8 5 2 3 -1 0 4 -2 ...

13 years ago | 1

| accepted

Question


Spurious fire from timer
*Question:* _Has anyone experienced the behavior, which I describe here?_ Posting questions here makes me think. This is a...

13 years ago | 0 answers | 1

0

answers

Answered
Timers: possible bug/documentation error
I reproduced your result with R2012a 64Bit, Win7. However, with the accelerator turned off the timer interupt the for-loop as de...

13 years ago | 3

Answered
csvread and dots in filename
This works for me on R2012a 64bit >> fid = fopen( '@AAE-I_INDEX_S&P Custom_ABN AMRO Renewable.csv', 'r' ); >> cac = ...

13 years ago | 0

Answered
fopen failing with @ or . in filename
This works for me on R2012a 64bit >> >> fid = fopen( 'cssm.@.txt', 'r' ); >> cac = textscan( fid, '%[^\n]' ) ...

13 years ago | 0

Question


timer or while-loop is the question
It is possible to emulate a simple timer with a while-loop as I outline below. The timer object causes me trouble and now...

13 years ago | 1 answer | 1

1

answer

Load more