Answered
How to extract a matlab program with all functions
The answer depends on the Matlab release you use. However, * See <http://uk.mathworks.com/help/matlab/packaging-guis-as-apps...

10 years ago | 0

Answered
How to efficiently deal with the following sorting/max problem
If *|max(A(:,1)|* is not too large (whatever that is) %% C = accumarray( A(:,1),A(:,2),[], @max ); ix = unique( A(:,1...

10 years ago | 0

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
*Background:* The threads of comments, in which I participate, are not always effective. One reason (certainly not the main one)...

10 years ago | 0

Answered
auto run and delete files from multiple subfolders
I see two approaches. Create cell arrays of strings containing the names of the sub-folders on the different levels. Use thes...

10 years ago | 1

| accepted

Answered
Getting index from strsplit or strfind in a null (00) terminated string
What am I missing? >> str = [char(0),'abc',char(0),'123',char(0)]; >> find( str==char(0) ) ans = 1 5 ...

10 years ago | 1

| accepted

Answered
Previously accessible file is now inaccessible.
* The "installation programs" of Matlab toolboxes (The MathWorks excluded) varies. You have to follow the specific instructions ...

10 years ago | 0

| accepted

Answered
Setting a Base Class property from Derived class
I tried this, which works fine. What do you try to do? >> ca = ClassA ca = ClassA with properties: ...

10 years ago | 0

Answered
How to Compare value returned by regexp and another string ?
_"What am I missing here?"_ &nbsp I guess you are missing that cni =regexp (nameF, '.txt', 'split'); returns a &nbsp<1x...

10 years ago | 0

| accepted

Answered
how to concatenate all the cell values horizondally in matlab
One way >> cac = {[1;1;1] [2;2] [3;3;3;3] }; >> cat( 1, cac{:} )' ans = 1 1 1 2 2 3 ...

10 years ago | 0

| accepted

Answered
Format file Data?
First attempt %% num = xlsread( 'Data_11_1' ); %% fprintf('Original Design Ratings\n\n') fprintf('%14s%14s%14...

10 years ago | 0

| accepted

Answered
Read every line from .txt file and selecting text from txt file.
I guess you should use *|textscan|*. *|import|* is confused by the "E" and the "N". See <http://uk.mathworks.com/help/matlab/ref...

10 years ago | 1

| accepted

Answered
How to write case in simple way ?
One way >> cssm(12) 12 where function cssm(jj) switch jj case num2cell([1:24]) ...

10 years ago | 0

| accepted

Answered
Calling one method from another method
Is this close to what you look for? *|obj_second|* could have been passed as an argument to the constructor of *|first|*. ...

10 years ago | 0

| accepted

Answered
I have a data file of up to millions of rows and columns. As the image above. How can you separate it into each row and each column separately. Help me. I am extremely grateful for the help from you. Separating data
Reading *|data.txt|* with Matlab presents to two "challanges" # the fixed width columns without delimiter # the structure wi...

10 years ago | 1

| accepted

Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
I just noticed a minor feature. Searching for &nbsp *|classdef -tag:oop|* &nbsp returned 361 hits, which is reasonable. Howev...

10 years ago | 0

Answered
Cannot open structs with variabel viewer
The variable *|val|* is a cell array. Each cell contains a *|struct|*. See the question <http://www.mathworks.com/matlabcent...

10 years ago | 1

Answered
How to gather code
See * <http://uk.mathworks.com/help/matlab/matlab_prog/improve-code-readability.html#brazeg3-1 Code Folding — Expand and Col...

10 years ago | 0

Answered
Extracting information from file
This is one way to read the your file >> tic, sas = nohup, toc sas = 1x1173 struct array with fields: SampleN...

10 years ago | 0

| accepted

Answered
What's the oldest MATLAB version that support tcpclient() function?
* <http://se.mathworks.com/help/matlab/ref/tcpclient.html?searchHighlight=tcpclient tcpclient, Create TCP/IP client object to ...

10 years ago | 0

Answered
Can I nest objects in MATLAB?
Yes! See <http://se.mathworks.com/help/matlab/matlab_oop/initializing-arrays-of-handle-objects.html Initialize Arrays of Handle ...

10 years ago | 1

Answered
Import .XML data into Matlab?
In the File Exchange there are many contributions to read XML-files. Maybe, that's because xmlread is tricky to use. I once ...

10 years ago | 0

Answered
How to count terminate leaves in decision tree?
_"exist any way how to count number of terminate leaves in decision tree?"_ &nbsp This is what I found in the *R2014a* documenta...

10 years ago | 1

| accepted

Solved


Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

10 years ago

Solved


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

10 years ago

Answered
How do I do a pointer to a class function?
Matlab doesn't have C-languge-pointers. This example might ... %% a = A; b = B; %% m = M(a); m.step %%...

10 years ago | 0

Answered
I need some help with plotting a scatter plot in a for loop
The function *|kevin|*, which I think implements _"The graph I am trying to make does x(1),y(1) x(1),y(2) up to x(1),y(end) and ...

10 years ago | 0

| accepted

Answered
Data extraction with undefined file length
Try this %% str = fileread( 'lorem.txt' ); cac = regexp( str, '(?<=W A V E P E R I O D =)\s*[\d\.\E\+\-]+', 'match'...

10 years ago | 0

| accepted

Answered
Best way to display a group of arrays as a table?
_"put them in a table "_ &nbsp on screen or to a text file? If this format is good enough T = Gender Age ...

10 years ago | 0

Answered
problem with writing codes in big line numbers
I assume that you work with a log or data file - or possibly some automatically generated m-code. I use <https://notepad-plu...

10 years ago | 0

| accepted

Answered
reading a file in matlab
* I failed to read *|tRMA.txt|* with Import Data. It choked Matlab (R2013a) * The code below reads the file, *|tRMA.txt|*. * I...

10 years ago | 1

| accepted

Load more