Answered
How to create OOP properties with subfileds
Usually I do this by having Tasks also be an object of a class so that class will have the required properties. You can do it...

10 years ago | 0

Answered
Are Matlab r2015b files compatible with the r2015a version?
What type of files do you mean? Code files or .mat data files? As far as I am aware all files are compatible between the two...

10 years ago | 0

| accepted

Answered
Passing on superclass property values to subclass
When creating an object of a subclass this is the object type that _must_ be created in the construction process. Whether you...

10 years ago | 1

Answered
Passing on superclass property values to subclass
A class constructor has some special constraints that other functions do not have. One of these is that it must returned an obj...

10 years ago | 1

Answered
What is the effective error block statements when import many kinds of txt data?
For a start this is one of the reasons why you absolutely should not create 100 different variables to load your data into. E...

10 years ago | 0

| accepted

Answered
How can I make a loop of the variables?
Use an array, don't create 432 variables. That is the reason you are asking this question - you created all these variables and ...

10 years ago | 1

Answered
Is this distance variable?
hYLabel = ylabel( 'Some y label' ); then you can edit the ' *Position*' property of your hYLabel to move it horizontally or...

10 years ago | 1

Answered
How to display a different SELECT menu depending on the radiobutton using MATLAB gui?
Using GUIDE is the simplest method as it will setup the (empty) callbacks for you and allow you to position the radio buttons as...

10 years ago | 0

Answered
Include gui panel into another gui panel...
This is easy enough if you use programmatic GUIs, but not if you do your GUIs in GUIDE. Numerous of my GUIs I do programmatic...

10 years ago | 0

| accepted

Answered
HELP : Subscript indices must either be real positive integers or logicals - AGAIN
By including 'again' in the title I hope that you are learning from previous solutions and that this is a different type of caus...

10 years ago | 0

| accepted

Answered
Scale up an image without interpolation
Something like this should work I think, with a single for loop. I'm not sure if it could be done without a for loop at all. P...

10 years ago | 0

Answered
How to include all objects using find for an image
[~, idx] = sort( ROI(:) ); [i, j] = ind2sub( size( ROI ), idx(1:10) ); is how I would do it, though obviously where the ...

10 years ago | 1

| accepted

Answered
Script does not use local path?
Your path is defined within Matlab and is just taken in the order things appear on the path, unless code is in a private folder ...

10 years ago | 0

Answered
Add first element to a cell array
ArrCell = [ { new }, ArrCell ]; should work. I'm not at my machine with Matlab at the moment so can't double-check, but fa...

10 years ago | 4

| accepted

Answered
Passing axes name as an argument then applied to to gca
I would strongly advise keeping hold of the handles to the graphics objects you plot so you can delete them later if that is wha...

10 years ago | 2

| accepted

Answered
How to set the label of a object manually
L = bwlabel(BW, 4); myLabels = [77, 55, 22, 7]; L = myLabels( L+1 ); will relabel 4 labelled objects with user-de...

10 years ago | 0

Answered
For cycle to extract row of an Array and save them into vectors
Do you want r1, r2, r3, r4 to be cell arrays too? If so I don't see why you would ever want to do this when you could just in...

10 years ago | 0

Answered
What does this matlab statement do
The variables within the first set of brackets, i.e. 'A' in this case are arguments that are to be specified at *_call time_* i....

10 years ago | 0

| accepted

Answered
How to keep a class property constant after it's specified the first time
The accepted answer by the cyclist is basically correct, though in addition I would add that what you are looking for is pr...

10 years ago | 1

Answered
Matlab: optimize code
You definitely need to post your LCS function for more detailed advice because that is the one that contains the error. Somew...

10 years ago | 1

| accepted

Answered
what does this code do ?
It removes the last element of r1 in a rather over the top manner. Basically the same as: r1(end) = []; if r1 is a vect...

10 years ago | 0

Answered
Getting a callback to execute DURING a panning operation
This recent post on Yair Altman's blog may help you: http://undocumentedmatlab.com/blog/enabling-user-callbacks-during-zoom-p...

10 years ago | 0

Answered
Reassigning Values to sorted indices from a set of labels
L(I) should give what you want, if I understand correctly what you are asking, assuming you actually have data arrays despi...

10 years ago | 0

| accepted

Answered
What is the best way to inerapolate Nans in a time series.
As an example, the following can interpolate data containing NaNs although obviously the more consecutive NaNs there are the mor...

10 years ago | 0

Answered
Get Values Of Cell Array
Just access the 4th element using { } notation e.g. myCellArray{4}

10 years ago | 2

| accepted

Answered
Parsing an XML file
doc xmlread would probably be better. It is not intuitive code and objects to work with, but once you get used to it it wo...

10 years ago | 1

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

10 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

10 years ago

Load more