Community Profile

photo

per isakson


Last seen: Today

KTH

2,328 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 to read .enf file
A little exercise with regular expression >> cssm( 'BFND_W6.txt' ) ans = struct with fields: FP1: 'Invalid' FP...

19 hours 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...

2 days 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 days 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...

3 days 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 days 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 days ago | 0

| accepted

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

4 days 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...

4 days 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...

6 days 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:...

8 days 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(...

9 days 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...

10 days 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 days 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 ...

14 days 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...

18 days ago | 1

| accepted

Submitted


m2uml
m2uml generates UML class diagrams from m-code

25 days ago | 53 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...

25 days 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.

30 days 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/%...

30 days 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...

1 month ago | 0

| accepted

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

1 month 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 ...

1 month 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...

1 month 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...

1 month 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 >>

2 months 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

2 months 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 ];

2 months 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

2 months 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 ...

2 months ago | 0

| accepted

Answered
Extracting length information of pattern from specific string (not fixed string)
This is an answer to the follow_up question, which was closed when I tried to submit. %% chr = '010100001111111111111110000010...

2 months ago | 1

Load more