Answered
Diagrams from matlab code
There is very little support to automatically make diagrams based on Matlab code. However, see * <http://www.mathworks.co...

12 years ago | 1

Answered
how to store two decimal point number in array
val = round( 100*val ) /100; and see <http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_...

12 years ago | 0

Answered
Storing values in cell instead of struct
Try something like save( Route, '-regexp', '^f\w*\d$' ); this should save all variables, the name of which start with...

12 years ago | 0

| accepted

Answered
Create a function which can stop itself if its internal function gives no reaction within XX seconds ??
AKAIK: There is no simple way to do that. We discussed a function, <http://www.mathworks.se/matlabcentral/answers/59491#answe...

12 years ago | 0

Answered
Tackling the right structure type for my file2struct function of mixed data types.
I'm not exactly sure what your question is. However, this might help. It is the standard way to read and parse your file. Try th...

12 years ago | 0

Answered
How can I determine the number of Headerlines for varying, non-rectangular text files so that I can parse it with textscan?
I'm not sure I understand whether your file contains one or more blocks of numerical data. Here is a file that handles both case...

12 years ago | 1

Answered
Plot three graphics aligned.
Search the FEX for alternative to <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=subplot subplot...

12 years ago | 0

Answered
How to save maximum value in each iteration
You overwrite |val| and |idx|. To avoid that, replace [val,idx] = max(n); by [val(i),idx(i)] = max(n);

12 years ago | 1

| accepted

Answered
converting ASCII to decimal , please help .
try num = str2num( ascii_array ); and doc str2num

12 years ago | 0

Answered
How can I check whether the strictly positive elements of each row of a matrix are equal?
arrayfun( @(jj) (length(unique(A(jj,(A(jj,:)>0)))) == 1),(1:size(A,1)) ) returns ans = 0 1 1

12 years ago | 0

| accepted

Answered
Why doesn't a simple progream work?
My guess: Change y=1-(1/(Ti/2)*(0.5))*atan((sin(2*(Ti/2)*(0.5)))/(cos(2*(Ti/2)*(0.5))+exp(2.*acos(x)))); to y=...

12 years ago | 0

Answered
How can i fix this code and simulate? ( Thank you so much!)
|slot_format| is obviously not defined when the line s_format = slot_format(sf_no); is reached. I created a function ...

12 years ago | 0

| accepted

Answered
Textscan with very large .dat files, Matlab keeps crashing
* _"load in the data a block at a time"_ . _*Block*_ is that a part of a file? * converting from double to single saves on mem...

12 years ago | 1

Answered
Can I import this CSV file into Matlab?
Looks like Excel. Try <http://www.mathworks.se/help/matlab/ref/xlsread.html xlsread>

12 years ago | 1

| accepted

Answered
[MATLAB GUI] How can I add a string to the last line in multiline EditText?
To me it isn't clear what your problem is. Anyhow there is no alternative to set( h, 'String', string_values ) ... ...

12 years ago | 1

Answered
How can I eliminate unwanted zeros from a matrix?
Hint: >> num = [ 1,1,1,1,0,0 ]; >> num( num == 0 ) = [] num = 1 1 1 1

12 years ago | 0

Answered
the exp function does not work
>> exp(2) ans = 7.3891 I guess |exp| is "shadowed" on your system. Run >> which exp built-i...

12 years ago | 2

| accepted

Answered
In a column how do I find the first cell to equal 0?
Run this %% ixc = 3; % third column sample_array = num2cell( magic(4)-3 ); is = cell2mat( sample_array( :,...

12 years ago | 1

| accepted

Answered
GUIDE GUI Vs Programmatic GUI
_"Is there any advantage of creating a GUI programmatically over using GUIDE?"_ . Yes, I'm positive there are many. I hardly eve...

12 years ago | 1

Answered
extracting rows based on string in first column (Should be fairly simple ... not for me apparently)
Problem: extracting first day of each month from one year of hourly data (two missing hours). One alternative is to compare day ...

12 years ago | 1

| accepted

Answered
automatically running m scripts
Make a new script containing the lines a b c d e Put the new script in a folder, which is in the M...

12 years ago | 3

| accepted

Answered
Why can't I use the object that the uicontrol creates within a class created GUI?
There are different types of objects (, which is a bit confusing) * handle graphic objects * instances of user classes Th...

12 years ago | 1

Answered
load some data.mat placed in different folders in loop
Try something like this folder_list = {'d:\folder1','d:\folder2','d:\folder3'}; for jj = 1 : length( folder_li...

12 years ago | 0

| accepted

Answered
Why does it take Matlab so long to delete handles and objects that are interconnected?
Loren Shure writes in her blog-post, <http://blogs.mathworks.com/loren/2012/03/26/considering-performance-in-object-oriented-mat...

12 years ago | 0

Answered
Upload data from file and store into variable
Try number_of_rows_of_my_xy = size( my_xy, 1 ); and doc size

12 years ago | 0

Answered
How to import coordinates from a txt/csv file
Something like this should read your data. Try >> cac = cssm( ) cac = [3x3 double] >> cac{:} an...

12 years ago | 1

| accepted

Answered
How can I write the arguments of an anonymous function when programming?
Doesn't the info in <http://www.mathworks.se/help/matlab/matlab_prog/anonymous-functions.html Anonymous Functions> cover your ca...

12 years ago | 0

| accepted

Answered
How to reset a FOR loop if condition is met?
* _"most efficient way"_ . See <http://c2.com/cgi/wiki?PrematureOptimization Premature optimization> * Why not show us a solut...

12 years ago | 0

Answered
MATLAB is running really slow.
Did you run bench ? How does it rank your system? Do you have memory enough for your test?

12 years ago | 0

Answered
Getting "Subscripted assignment dimension mismatch" error message
Your file is not easy to read and parse with Matlab * The file is fixed width formatted. There are *no delimiter* between t...

12 years ago | 2

Load more