Community Profile

photo

per isakson


Last seen: Today

KTH

2.329 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
How do I add a new element to an object array using pass by reference?
The documentation on Initialize Arrays of Handle Objects says "[...] Creates unique handles for each element in the array." I a...

etwa 13 Stunden ago | 0

Answered
How to read .enf file
A little exercise with regular expression >> cssm( 'BFND_W6.txt' ) ans = struct with fields: FP1: 'Invalid' FP...

ein Tag ago | 0

Answered
Problem in creating a new local Git repository
Caveat: I stick to R2018b. This new project tool confuses me. There was an amusing thread here at Answers that exposed the inte...

3 Tage ago | 0

Answered
Read file with non-uniform lines?
>> S = cssm( 'd:\m\cssm\cssm.txt' ) S = 1×2 struct array with fields: header colhead Code data >> S(1)...

3 Tage ago | 0

Answered
Remove first characters from a string
... or if I understand "I want to remove the first 5 characters from each of these strings" literally %% u{1,1} = "ART1/TEACH...

4 Tage ago | 0

Answered
Seeking a little clarification on using sprintf with %d and formatSpec etc. to load similar *.MAT filenames that only differ in name by number.
Less brute sad = dir( fullfile( root_folder, '**', 'Band*Hz.mat') ); However, this assumes that you want to read all files und...

4 Tage ago | 1

| accepted

Answered
How do I make my vector length even?
The statement x = linspace(5,(-2*pi),(2*pi)); looks strange to me. On R2018b it creates a row vector of length 6, which supris...

4 Tage ago | 0

| accepted

Answered
Functions within a matrix
There are several ways, one of which is cat, Concatenate arrays

5 Tage ago | 0

Answered
My for loop is running only once
"My for loop is running only once" Your loop is running 361 times, but the results of each run overwrites the results of the pr...

5 Tage ago | 1

Answered
Index exceeds the number of array elements (1). Error coming in the code below
I cannot reproduce (on R2018b) the error that you report: Index exceeds the number of array elements (1). Error in CircleFitBy...

7 Tage ago | 0

| accepted

Answered
Index exceeds the number of array elements (2). Error (line 41)
dy_v is a row vector with length two dy_v= [0.33 -1.5]; The end value, n+1, of this loop is 4 %% Create Vector B for i=1:...

9 Tage ago | 0

Answered
Create index between values
Study this %% a = [0,1,0,2,0,2,1]; ixb = find( a==1, 1,'first'); % begin ixe = find( a==2, 1,'last'); % end %% b = zeros(...

10 Tage ago | 0

| accepted

Question


Help me read the doc on matlab.fonts Settings
Background I use the font, Inconsolata, in the Command Window and the Editor. It's very readable (imo), however there is a pro...

11 Tage ago | 1 answer | 0

1

answer

Answered
Array instead of one value in loop form
I assume that you want to iterate over the loop for the 27 values, i=[1,2,3,...,27]. That is exactly what for i=1:27 does. (The...

14 Tage ago | 0

| accepted

Answered
How to effectively check a list of variables for existence and then check "isvector"
Maybe it's good enough to run >> whos data* Name Size Bytes Class Attributes data1 0x0 ...

15 Tage ago | 0

Answered
Index in position 1 exceeds array bounds (must not exceed 1)?
I replaced the inner for-loop by for n=1:(T/steg) f01 = idenmat - steg*theta*A; f22 = quart...

19 Tage ago | 1

| accepted

Submitted


m2uml
m2uml generates UML class diagrams from m-code

26 Tage ago | 42 downloads |

Thumbnail

Answered
Need help on matlab table
Assumption: You have a text file that contains exactly the five lines of text formatted as code in your question. Run the func...

26 Tage ago | 0

Question


How to Contact File Exchange Admin?
I try to update a FEX submission, but The previous version is a zip-file and now I try to replace that with a mltbx-file.

etwa ein Monat ago | 1 answer | 1

1

answer

Answered
matlab fprintf error? please help
Most likely, fid = fopen(...), failed and return a negative value to fid. Replace fid = fopen(sprintf('%s/Timeseries.ROIs/%...

etwa ein Monat ago | 0

Answered
sum separate continuous values
%% d = diff( c ); ixb = find( d == +1 ) + 1; ixe = find( d == -1 ); %% is_group = ixe >= ixb + 1; [ ixb(is_group), ixe(i...

etwa ein Monat ago | 0

| accepted

Answered
How to use "dir"?
Renam the folders 'Inst1', to, 'Inst01', etc. or see natural order.

etwa ein Monat ago | 0

Answered
The loop does not take all values
I cannot reproduce the issue that you report. You didn't show us the error message! There is an error message? First, I tidied ...

etwa ein Monat ago | 1

| accepted

Question


Why does web('name.html','-new') open the html-file in the Help browser?
Experiments with R2018b show that web('name.html','-new') honors the Matlab documentation and displays 'name.html' in the Matla...

etwa ein Monat ago | 0 answers | 0

0

answers

Answered
How to read strings from a txt file?
The text file, model.txt, contains the five lines given in your question. The script fid = fopen( 'model.txt' ); cac...

etwa ein Monat ago | 0

| accepted

Answered
find the minimum value of y for positive vales of x
Try this %% x = (-100:100); y = x.^3+60*(x.^2)-50; %% xmin = min(y(x>0)) which returns xmin = 11 >>

etwa 2 Monate ago | 0

| accepted

Answered
Looping through a random matrix to see if any element is >0.5
Try %% for random_number_matrix = rand(4,8) display (random_number_matrix) end and read the documentation on for

etwa 2 Monate ago | 0

Answered
How to combine multiple columns into array?
Two ways array = cat( 2, col1, col2, col3, col4, col5 ); array = [ col1, col2, col3, col4, col5 ];

etwa 2 Monate ago | 0

| accepted

Answered
How to write properties in vectors in matlab oop?
P(1)=obj.lcc; P(2)=obj.rc; P(3)=obj.mc; where obj is the instance variable

etwa 2 Monate ago | 0

| accepted

Answered
Matlab reads file with different order
>> fid = fopen('RQ_par.txt'); >> fs = fscanf( fid, '%f' ) fs = 0.9011 0.848 0.6744 0.54 ...

etwa 2 Monate ago | 0

| accepted

Load more