Community Profile

photo

per isakson


KTH

2.118 total contributions since 2010

Contact

per isakson's Badges

  • Revival Level 3
  • Ace
  • 36 Month Streak
  • Leader
  • Speed Demon
  • Promoter
  • Personal Best Downloads Level 2
  • Editor's Pick
  • First Review
  • 5-Star Galaxy Level 4
  • First Submission
  • Thankful Level 3
  • Knowledgeable Level 4
  • First Answer
  • Commenter

View all

Contributions in
View by

Answered
Is there inheritable behavior (or a Mixin) for setting/getting the 'Parent' and 'Children' properties of a custom class?
"make the following code error-free" There is a problem regarding handle or value class. In the code it's assumed that superCla...

etwa 18 Stunden ago | 0

Answered
how to plot 1x22000 struct with 1 field??
The screenshot of the Command Window shows that the data-20.mat contains Qt, which is a <1x22000 struct>. I assume that Qt has...

7 Tage ago | 0

Answered
How do I extract data from a specific subplot in a MATLAB figure?
This illustrates the old way to do it. (There might be shortcut nowadays.) %% Example from the documentation of subplot subpl...

10 Tage ago | 0

Answered
Having trouble using the built in table function
%% variable_names = ["variable","month","min","mean","median","mode","max","std"]; variable = [ repmat("Mean T",1,12),repmat("...

10 Tage ago | 0

| accepted

Answered
How can I call variable with a name from the value in cell array??
A variant without eval() %% sv.AFEN = (1:10)'; sv.AFMN = (2:22)'; sv.AFDN = (11:15)'; SeedValue = 'AFEN'; %% rn = randi( ...

11 Tage ago | 2

Answered
hdf5 dataset dynamically creating
Yes, see example, "Append Data to Unlimited Data Set", in h5write Write to HDF5 data set

12 Tage ago | 0

| accepted

Answered
Not Converting ASCII to DECIMAL
I guess the problem is in the meaning of "Converting ASCII to DECIMAL". The character '1' is represented by the decimal ascci...

13 Tage ago | 0

Answered
How to find strings in a very large array of data?
"random strings like 'zgdf'" If that means letters of the US alphabet, this code is rather fast. %% chr = fileread('cssm.txt'...

14 Tage ago | 0

Answered
How do I invoke my property set method?
Doc says: You cannot call property access methods directly. MATLAB calls these methods when you access property values. "objX....

16 Tage ago | 0

Answered
Invalid file identifier. Use fopen to generate a valid file identifier.
Try filespec = fullfile( "/Users/kira/desktop/PHYS4115Tables/'att'", filename ); fileID = fopen(filespec, 'rt'); assert(file...

18 Tage ago | 0

Answered
CSV file imported with readmatrix is misreading the data in the CSV file
"The resulting array consists of 5 digit numbers with a decimal point after the first number." I assume that you describe how ...

19 Tage ago | 0

Answered
Compare two arrays (intersection) and create new array with output columns, but with repetitions
Your way of defining A, B and C makes me wonder whether you intended to define matrices, not vectors. Anyhow, this is a differe...

20 Tage ago | 0

| accepted

Answered
Working With Matlab Tables
"I remember from somewhere" With Matlab that doesn't work for me. I need to consult the documentation more often than not. This...

20 Tage ago | 0

Answered
Calling .inp file into MATLAB
" .inp file created in Abaqus" is that a text file like the sample below? If so, Matlab itself together with its toolboxes don'...

23 Tage ago | 0

Answered
Launching a thread that effectively pushes a button in your GUI periodically
Create a timer ( see timer class Create object to schedule execution of MATLAB commands) that periodically invokes the Update c...

26 Tage ago | 1

| accepted

Answered
Creating random vector with 10 different lengths
Documentation on randi says: X = randi(imax,n) returns an n-by-n matrix of pseudorandom integers drawn from the discrete unifor...

27 Tage ago | 1

Answered
[ERROR] Index exceeds array dimensions. Index value 0 exceeds valid range [1-1] of array Coeff.p01.
I guess that this term causes the error Coeff.p01(torque*Coeff.b/Coeff.T_max) and that's because torque*Coeff.b/Coeff.T_max ev...

27 Tage ago | 0

Answered
How do I use regexp to extract text between numbers
"So the end product I want will be a 16x1 string that looks like" I'm not sure exactly how understand your requirement. The pr...

28 Tage ago | 1

Answered
find a string using regular expression using a special condition
Assumptions regarding the search terms case is significant. ( "liquid, X" the lower case "l" is a typo.) space is significant...

28 Tage ago | 0

| accepted

Answered
Strange error using readtable
I've downloaded brtyrpre.txt from your comments and copy&pasted brtyr_error_pre.txt from your question ("Here is the one the sc...

29 Tage ago | 0

| accepted

Answered
Comparing Matrices in a Struct
Try this S(1).model_data = rand( 4, 10 ); S(2).model_data = rand( 2, 10 ); S(3).model_data = rand( 3, 11 ); Out = cssm_( S ...

29 Tage ago | 0

| accepted

Answered
Compare classes with different Properties
Try this %% Create sample data mc(20) = MyClass; [mc(1:7).a] = deal(1); [mc(8:20).a] = deal(2); %% Desired output edges =...

etwa ein Monat ago | 0

| accepted

Answered
Why can't a concrete subclass use size and validator functions on abstract superclass properties?
The R2019b doc on Validate Property Values says [...] Abstract Property Validation You can define property validation for ab...

etwa ein Monat ago | 0

Answered
save obj creates a large mat files, disagrees with whos
"Once I have reached the 2GB data size format v7 will no longer work." ??? Doc on save v7 says: 2^31 bytes per variable Ex...

etwa ein Monat ago | 0

Answered
why does my m file not save correctly
The command save is used to store variables of the current workspace, i.e. save data. There is no simple command to save m-code...

etwa ein Monat ago | 0

Answered
Why does converting a table to a struct increase memory usage by 15x??
What kind of structure do you expect? table2struct can create two kinds. struct array with one struct for each row of the tab...

etwa ein Monat ago | 1

Answered
How to load text file to workspace variables?
"load to workspace as variables with string name in var and numeric value as val." There need to be a really good reason to do ...

etwa ein Monat ago | 0

Answered
how to produce a logical matrix using index matrix
Try logical_matrix = false( 1, 4 ); logical_matrix( b ) = true;

etwa ein Monat ago | 1

| accepted

Answered
Error using - Matrix dimensions must agree.
I get a different error. One reason for the difference in the wording is that we run different releases of Matlab(?). I run R201...

etwa 2 Monate ago | 0

| accepted

Answered
Varargout - How to realize function call
varargout exercise. Try something like this function varargout = test( j, k ) out1= nargin; out2 = j-k; if out2 ...

etwa 2 Monate ago | 0

Load more