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

más de 12 años hace | 1

Respondida
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_...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 1

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

más de 12 años hace | 0

Respondida
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);

más de 12 años hace | 1

| aceptada

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

más de 12 años hace | 0

Respondida
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

más de 12 años hace | 0

| aceptada

Respondida
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=...

más de 12 años hace | 0

Respondida
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 ...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 1

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

más de 12 años hace | 1

| aceptada

Respondida
[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 ) ... ...

más de 12 años hace | 1

Respondida
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

más de 12 años hace | 0

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

más de 12 años hace | 2

| aceptada

Respondida
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( :,...

más de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 1

Respondida
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 ...

más de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 3

| aceptada

Respondida
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...

más de 12 años hace | 1

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

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

más de 12 años hace | 0

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

más de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 0

| aceptada

Respondida
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...

más de 12 años hace | 0

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

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 2

Cargar más