Answered
How to suppress command output on screen?
Try str = evalc( 'system(''dir'')' ); and [ status, cmdout ] = system('dir'); and compare with s...

12 years ago | 0

Answered
Search a cell array of structs
Try cac{1} = struct( 'name', 'val1' ); cac{2} = struct( 'name', 'val2' ); cac{3} = struct( 'name', 'val3'...

12 years ago | 1

| accepted

Answered
logical statements of an array
See * <http://www.mathworks.se/help/matlab/math/matrix-indexing.html Using Logicals in Array Indexing>

12 years ago | 1

Answered
xor equivalent with AND OR logic
See * <http://www.mathworks.se/help/matlab/logical-operations.html Logical Operations> * <http://en.wikipedia.org/wiki/Venn...

12 years ago | 1

Answered
Time Series Prediction Algorithm
See * <http://www.mathworks.com/matlabcentral/fileexchange/28684-electricity-load-and-price-forecasting-webinar-case-study El...

12 years ago | 0

Answered
Write bold text in a textbox - guide
*Correction:* See <http://www.mathworks.com/help/matlab/ref/uicontrol_props.html#bqxoil6 Uicontrol Properties> FontWe...

12 years ago | 1

| accepted

Answered
Making GUI with sub-elements resizable in a quick way
Add this line at the end of the code, which defines the GUI set( findall( fig_handle, '-property', 'Units' ), 'Units', '...

12 years ago | 2

| accepted

Answered
Preventing parallel GUI functions from overrunning matlab
See the <http://www.mathworks.se/help/matlab/ref/uicontrol_props.html property, Interruptible> Interruptible {o...

12 years ago | 1

Answered
Making GUI with sub-elements resizable in a quick way
Based on a simple experiment with R2013a, I think this will do the trick h = findobj( fh, '-property', 'Units' ); se...

12 years ago | 1

Answered
Given handle to graphics object, determine which properties are read-only
Yes set_properties = set( h2 ); get_properties = get( h2 ); read_only_properties = setdiff( fieldnames( get_pro...

12 years ago | 2

| accepted

Answered
How to write equations in gui edit text box?
The short answer is: It cannot be done! That's why Douglas Schwarz created <http://www.mathworks.com/matlabcentral/fileexchange/...

12 years ago | 0

| accepted

Answered
How to lock the focus on a GUI window?
See <http://www.mathworks.com/help/matlab/ref/figure_props.html documentation> WindowStyle {normal} | modal | docke...

12 years ago | 1

| accepted

Answered
Remove zeros and perform calculation with non-zero elements
Hint B(not(B==0)) = perform_calculation( B(not(B==0)) ); where function M2 = perform_calculation( M1 ) ...

12 years ago | 2

Answered
Reading a text file without headers
If all rows have the same number of columns dlmread, Read ASCII-delimited file of numeric data into matrix Syntax ...

12 years ago | 0

| accepted

Answered
How to change NUMBER size with plotyy
This works as expected with R2013a %% copy from documentation figure x = 0:0.01:20; y1 = 200*exp(-0.05*x)...

12 years ago | 0

| accepted

Question


How to avoid a disturbing behavior of the MenuStrip in the ribbon
*Background* I have a GUI with some stuff to support development of code, e.g unit testing. The GUI is docked in the lower le...

12 years ago | 0 answers | 0

0

answers

Answered
Command windows doesn't respond after entering a code.
*What exactly did you enter?* . I copy&paste A=[11 2 ‐5 7 4 2 9]; >> groter=A>5 including the characters, >>, to...

12 years ago | 0

| accepted

Answered
Best way to handle work log listbox output in GUI?
_*"it overrides what was already there"*_ that's the way Matlab works. You need to * get what's in the listbox * add the ne...

12 years ago | 0

| accepted

Answered
select selected numeber of rows from an huge array
There are a couple of magic numbers in your question. I guess it is the number of days in a year. "366" is leap year. >> ...

12 years ago | 0

| accepted

Answered
What does '...' mean in MATLAB?
doc on <www.mathworks.se/help/matlab/ref/specialcharacters.html Special Characters> says Continuation. Three or more per...

12 years ago | 0

Answered
Error using cell/ismember>cellismemberR2012a error
AFAIK and understand the documentation: |ismember| doesn't take a cell array, which contains different types of data. In your ca...

12 years ago | 0

| accepted

Answered
How can I divide my text file in several blocks?
This function outputs a diagram for day one function cssm YourFilePath = 'h:\m\cssm\January_5d.txt'...

12 years ago | 1

| accepted

Answered
Undefined function 'eq' for input arguments of type 'cell error
Replace txt1==data by ismember( txt1, data ) and see documentation of |ismember|

12 years ago | 1

| accepted

Answered
How do I import file names that change in a loop?
Change 'Trial%i.csv' to 'Trial%02d.csv'

12 years ago | 0

| accepted

Answered
Using a callback function which accesses two handles
A problems is that there are so many different ways. One way is to use the property |Tag| in combination with |findobj|. Thu...

12 years ago | 1

| accepted

Answered
Plot is plotting very weird lines between points... Very confused!
Change the line date = datenum(inpdata(:,1),'mm/dd/yyyy'); to date = datenum(inpdata(:,1),'dd/mm/yyyy'); . ...

12 years ago | 0

| accepted

Answered
(Biginner) Code does not work! Please. I need a hand.
See * <http://www.mathworks.se/help/matlab/matlab_prog/base-and-function-workspaces.html Base and Function Workspaces> * <ht...

12 years ago | 0

| accepted

Answered
Help with loop or alternative solution
See <http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F How can I process a sequence of files?>

12 years ago | 0

Answered
Problem regarding to change conversion of cell2mat.
This my_cell = {[1,10],[1,2,10],[1,6,10]}; cac = cellfun( @(n) [n,zeros(1,3-length(n))], my_cell, 'uni',false ); ...

12 years ago | 0

| accepted

Answered
A problem with differentiating
|detk| is evaluated to a scalar and thus |c| will be empty. I find it easier to debug functions than scripts. Thus, I create...

12 years ago | 0

Load more