Community Profile

photo

per isakson


KTH

2,105 2010 이후 총 참여 횟수

담당자

per isakson's 배지

  • 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

모두 보기

참여 게시물
보기 기준

답변 있음
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'...

약 18시간 전 | 0

답변 있음
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...

4일 전 | 1

| 수락됨

답변 있음
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...

5일 전 | 1

답변 있음
[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...

5일 전 | 0

답변 있음
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...

6일 전 | 1

답변 있음
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...

6일 전 | 0

| 수락됨

답변 있음
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...

7일 전 | 0

| 수락됨

답변 있음
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 ...

7일 전 | 0

| 수락됨

답변 있음
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 =...

9일 전 | 0

| 수락됨

답변 있음
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...

13일 전 | 0

답변 있음
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...

15일 전 | 0

답변 있음
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...

18일 전 | 0

답변 있음
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...

18일 전 | 1

답변 있음
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 ...

20일 전 | 0

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

22일 전 | 1

| 수락됨

답변 있음
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...

23일 전 | 0

| 수락됨

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

25일 전 | 0

답변 있음
How many times does each combination of numbers appear?
"get it to tell" depends on what the little word "it" refers to. The function randi() cannot tell that. Try this as a start %...

25일 전 | 0

| 수락됨

답변 있음
How do I save each iteration of a loop into a matrix?
Replace for i=0:n c=circshift(p, [0, i]); end by c = nans(n,1); for i=0:n c(i)=circshift(p, [0, i]); end

28일 전 | 0

답변 있음
Using Load in a test methods makes the test pass
Looks like a bug to me, however in programs one ought to use the functional form S = load('matlab.mat'); In that case the test...

28일 전 | 0

답변 있음
Trouble reading the file with strread and textscan
"Illegal use of reserved keyword "end". " Deleting some code may leave a spurious end sometimes far to the right outside the ...

30일 전 | 0

답변 있음
Loop for sequence of text files
See How can I process a sequence of files?

약 1달 전 | 0

답변 있음
How to perform operations depending on a value in an array
This works accourding to your expectations - I think. %% C=[10,8,34,7,7,24,11,15,10,13,13,20,17,39,6,9,5,21]; data=2200; for...

약 1달 전 | 0

| 수락됨

답변 있음
Change folder vs change directory
Matlab issues the message that you refer to in "Change folder is the option that sometimes matlab ask before running the script"...

약 1달 전 | 0

답변 있음
How can I save data from features files into matrix?
I understand that "data for each feature for 500 images" is in ONE text file with 500 blocks of six rows. The format is illust...

약 1달 전 | 0

| 수락됨

질문


Regular expression. Are nesting of group operators supported?
Regarding Grouping Operators the function, regexp, doesn't behave the way I expected. >> cac = regexp( 'ABC', '((A)(B(C)))'...

약 1달 전 | 답변 수: 1 | 2

1

답변

답변 있음
Question about column operator vectors
Doc says x = j:k creates a unit-spaced vector x with elements [j,j+1,j+2,...,j+m] ... x = j:i:k creates a regularly-sp...

약 1달 전 | 0

| 수락됨

답변 있음
how to run function 1000 times to find minimum
Something like S = struct( 'score', cell(1,1000), 'grouping', cell(1,1000) ); for jj = 1 :1000 S(jj).grouping = randomize...

약 1달 전 | 1

| 수락됨

답변 있음
Rename and save multiple .mat files.
"the name on the work space is the old name" What do you expect? It's the names of the variables contained in the mat-file. The...

약 1달 전 | 0

답변 있음
How to extract text from string at the same location, one line above
"Is there a better/more efficient way of achieving this?" No, I don't think so. However, speed depends on how "each line for ea...

약 1달 전 | 0

| 수락됨

Load more