photo

Maroulator


Freddie Mac

Aktiv seit 2014

Followers: 0   Following: 0

Nachricht

Beginner in MatLab; very eager to learn.

Statistik

  • Thankful Level 4

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Selecting records from a matrix subject to a condition
My matrix(M) looks like the data below; how can I pull the records that have a third column greater than or equal to 20? ...

mehr als 7 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Printing table susing fprintf
I have the following script; my problem is that I cannot get all the values in A under column A in the frprintf. Any ideas? A...

mehr als 7 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Embedding a while into a for loop
I am trying to write a function which counts the amount of times a character pattern (p) can be found within another string; I a...

mehr als 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Creating arrays of unknown length
I am trying to write a function that generates a sequence of random integer numbers between 1 and m, stopping when a value is re...

fast 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


How do I merge vectors?
I have a 10X1 vector A=[1;3;7;10;12;14;15;18;20;21] and a 10X1 vector B=[3;12;15;18;20;0;0;0;0;0]. Is there a way to come up wit...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I merge vectors?
I have a 10X1 vector A=[1;3;7;10;12;14;15;18;20;21] and a 10X1 vector B=[3;12;15;18;20;0;0;0;0;0]. Is there a way to come up wit...

fast 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Logistic Regression Practice Problems
I am looking to practice running logistic regressions in MatLab. Does anyone have any online resources to recommend? Ideally, I ...

fast 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


What am I missing on the round function
I have the following code; Round_Data2 gives me the desired output, whereas Round_Data1 does not and I need to know why this is ...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


I need to know why my While Loop is breaking
I have the following code. My problem is that once I enter a negative number two consecutive times, instead of repeating the act...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Time of day deduction
I have a matrix with sequential elements from 1 to 86,400; one for every second of the day. Is anyone aware of a built-in functi...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Defining a square matrix
I have an array b=1:0.1:10.9 which I am trying to enter into a 10X10 square matrix. I have managed the following solution, howev...

fast 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How do I defined this (cell) array?
I am trying to define a cell array (or whatever other array), such that y has the following 11 elements. [], X.0, X.1, X.2,...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Combining char and num variables
I am looking to see if the following is possible; I seem to remember being able to do it, but the method escapes me right now. ...

fast 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Sparse Arrays - Specific Function?
I need to initialize a 100X100 sparse array with random values and a density of 5%; I then need to set all diagonal elements of ...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Sorting rows - case insensitive?
I am trying to sort the following matrix in alphabetical order and sortrows(A) seems to do the trick, except for the fact that t...

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


I do not understand why I am getting this error
The vectors below are loaded through two separate text files, hence the lack of commas among the vector elements. To the vectors...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Help on selection sort function
I have put together the ssort function below that takes in two arguments; one array that gets sorted and an argument ('up', 'dow...

etwa 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


Help needed; I am missing smth obvious on private functions
Below is a function (test) that I created in a directory I have named 'area1'; please note that I am using function test below t...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Expanding 1D array using for loop
I have the code below. What I am trying to do is accept/store an arbitrary number of positive input values (into the "values" ar...

etwa 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Index exceeds matrix dimensions
I have the code below, but I don't understand why it is that my index exceeds matrix dimensions. i=1; for min=0:60:240 ...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


End-of-array value entry
I have the following code which achieves what I need. However, when I tried to make it a bit more sophisticated and perform the ...

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


For-Loop vs While-Loop
I have the code in Part1 below which stores the values of x and y after the last iteration of my while-loop. Is there a way for ...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


While Loops - TextBook Example
I have the following code from my textbook: ires=2; while ires<=200 ires=ires^2; end I estimate that the abo...

mehr als 10 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


For loops - Textbook Example
I have the following code from a textbook exercise which asks me to arrive at the value of ires; the answer key has ires=25 as t...

mehr als 10 Jahre vor | 2 Antworten | 0

2

Antworten