Skip to main content

All Questions

Tagged with
0 votes
2 answers
124 views

How to find and check obects with all properties being empty in Matlab?

For example, I create a student with all properties being empty classdef student < handle properties name test end methods function obj = student(name) ...
TheAngryToad's user avatar
2 votes
1 answer
96 views

How to find objects with specific properties(another objects with specific properties) in Matlab?

For example, an object 'student' with a property 'test' , and 'test' is also an object with a property 'score'. classdef student < handle properties name test end ...
TheAngryToad's user avatar
1 vote
1 answer
41 views

Can a property of an object become other object's property, but still 'belongs to its owner'?

I don't know how to express 'property belongs to its owner' properly. For example, I define classes 'student' and 'teacher' classdef student < handle properties name homework ...
TheAngryToad's user avatar
0 votes
1 answer
52 views

How to store order of user input and update string

I am trying to make the field 'all names' display all of the selected 'names' (letters in this case) in the order they have been selected (assumed left-to-right). What I have written seems to only be ...
Yasuo Main's user avatar
0 votes
1 answer
36 views

Get properties from multilevel objects in matlab in matrix form

I want to get values from a multilevel object property in the form of a matrix here in below example clear all close all % dummy initialization of myStruct holding desired property 'x' for i=1:10 ...
Prateek Raj Gautam's user avatar
0 votes
1 answer
32 views

Set property of yaxis(1) and yaxis(2) using set in an arrayfun call

I am working on changing the values of the Y-axes of a 2-axis plot. I have been able to set the limits by using the following, for an array of axes (ax): ax(1).YAxis(1).Limits = [lowLim upLim]; ...
teepee's user avatar
  • 2,642
1 vote
1 answer
64 views

How to find objects by specifying the range of property value?

In Matlab I have defined a class and created a bunch of objects, how can I select a subset of all the objects by specifying a range for certain property? For example, if I have a person class with ...
LWZ's user avatar
  • 12k
1 vote
1 answer
38 views

Access property of a returned object without a temporary variable

How does one access the properties of a returned object without a temporary object? Or, to make myself clear, how do I turn this code into one line ? temp = info(AFR) Fs = temp.SampleRate I tried ...
user3548298's user avatar
0 votes
1 answer
533 views

Matlab: How to find values of properties of variables

I have a matlab file, let's call i dataset.mat. When loading dataset.mat into workspace, it contains several variables, all these variables are objects defined as a class. Let's call these variables: ...
Uffe A. Fredens's user avatar
1 vote
1 answer
265 views

Matlab : Object array indexing by property

In Matlab, I would like to create an array of objects from where I can pick up an element by one of its unique property while keeping the same behavior as normal indexing. Here is the class: ...
Julprod's user avatar
  • 28
3 votes
3 answers
2k views

setting object properties value for object array in matlab

I have created an array of objects and I would like assign a property value in a vector operation without using a for loop. Unfortunately I get an error. A simplified example of the problem. ...
Ruut's user avatar
  • 1,141
0 votes
1 answer
69 views

Constants for each instance of a matlab class

I want to save data to a constant field (different for each instance). Think of that like a fiel with the creation date of the object. I can not find out, how to do that. Reading Property Attributes ...
Bastian Ebeling's user avatar
3 votes
1 answer
5k views

Get length of irregular object in a BW or RGB picture and draw it into picture for control

I face a well known problem which I am not able to solve. I have the picture of a root (http://cl.ly/image/2W3C0a3X0a3Y). From this picture, I would like to know the length of the longest root (1st ...
Phillip G's user avatar