Gelöst


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

fast 13 Jahre vor

Gelöst


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

fast 13 Jahre vor

Gelöst


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

fast 13 Jahre vor

Beantwortet
creating a table in matlab
Without loops, there is no realllly simple way, that being said, there are a few shortucts, the code below should get you starte...

fast 13 Jahre vor | 0

Beantwortet
Nested For Loops - Using a value from first loop within the second loop
What you are looking for is actually pretty easy to do, the key is to realize that the i from the for loop is actually a variabl...

fast 13 Jahre vor | 0

Beantwortet
need help to make program recognize users inputs and associate values of a matrix to that users input
Hey Stephen, I did not look at your apparent other question, but to validate the year is very straightforward. I would do som...

fast 13 Jahre vor | 0

Frage


Has anybody else had the urge to use MATLAB as a verb?
For example: Man, I just can't stop MATLABing today, it's crazy! or I MATLABed for 7 hours today, my brain hurts now. ...

fast 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How are you supposed to write the code returned from "grabcode" to a file?!
The problem I was having is that all % signs, and well probably ! signs and other escape characters need to be changed for the f...

fast 13 Jahre vor | 0

Gelöst


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

fast 13 Jahre vor

Frage


How are you supposed to write the code returned from "grabcode" to a file?!
I have lots of published files I am trying to go through and get the code for. I was so happy when I saw that the "grabcode" fun...

fast 13 Jahre vor | 2 Antworten | 1

2

Antworten

Gelöst


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

fast 13 Jahre vor

Frage


Best way to do memory testing?
Hi, My name is Shaun VanWeelden and I am working on a project to look at script performance. A large part of what I do is gat...

fast 13 Jahre vor | 3 Antworten | 1

3

Antworten

Beantwortet
How to resolve memory issue
Not to familair with the issue, but my first inclination would be to throw a couple for loops in there and just break it down pi...

fast 13 Jahre vor | 0

Frage


Forcing MATLAB script timeout without modification
I am running many scripts to analyze time, memory, etc., the problem is some hang for a long time (2-3 minutes) and in that case...

etwa 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Permanently register DAQ or other administrator access workaround
Officially impossible? It is looking like the problem might be more with the daqmex more so than daqregister? Either way, is the...

etwa 13 Jahre vor | 0

| akzeptiert

Frage


Permanently register DAQ or other administrator access workaround
Hi, I am using a MCC DAQ device and have found that I need to run MATLAB as an administrator and then call 'daqregister' each...

etwa 13 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


Deleting a field from a sturcture
I have been trying to delete a field from a structure, but it keeps coming back! I do rmfield(myStruct,myField) and it shows ...

etwa 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
How to: Update/Refresh Graph / Axes
Honestly, your initial solution of having two editable text boxes is really a good one, while it may require slightly more work ...

etwa 13 Jahre vor | 0

Beantwortet
speech to text and text to speech conversion (STS)
First off, Google is amazing. Secondly, have you had a look at this? It looks like something that could be useful to you. htt...

etwa 13 Jahre vor | 3

| akzeptiert

Beantwortet
How to remove horizontal and Vertical lines
First step, convert whatever format the image is in to bw logic values, just use im2bw(yourImageValues). A really, really eas...

etwa 13 Jahre vor | 1

Frage


Data Acquisition (Really easy question)
I am trying to write a couple functions to interact with a MCC 1208LS sensor board and specifically trying to turn an led bar wi...

etwa 13 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


"Automatic" generation of HTML webpages like a report
Hi, So since I am on Christmas break for a month and have plenty of time on my hands, I have been able to look at adding some...

etwa 13 Jahre vor | 0 Antworten | 0

0

Antworten

Beantwortet
Simple rounding numbers in a matrix
Not to assume anything, but as a tutor for MATLAB, I have seen this question many, many times. If you are starting out in MATLAB...

etwa 13 Jahre vor | 1

Frage


The sum of stacked matrices
I have a 3-d matrix and I want to find the sum so that every element in the sum matrix is the sum of all the elements in that co...

etwa 13 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
Previewing a selection area on an image in a gui - possibly based off freehanddraw.m?
The answer was to use "Patch" instead of "line" and patch together circles on all the points, it works extremely well now. If an...

etwa 13 Jahre vor | 0

| akzeptiert

Frage


Previewing a selection area on an image in a gui - possibly based off freehanddraw.m?
My entire goal of this project is to make an "eraser" of sorts, where you can select that you want to erase, and then click wher...

etwa 13 Jahre vor | 2 Antworten | 0

2

Antworten

Beantwortet
checking if every component of a vector is nonnegative
An extremely intuitive answer would just be return the minimum of the logic matrix that results from your inequality. It will on...

etwa 13 Jahre vor | 0

Frage


How to automate image contrast adjustment using imcontrast or other ways?
So I am trying to adjust the contrast of an entire directory of images in the most efficient manner possible. I do not know enou...

etwa 13 Jahre vor | 2 Antworten | 1

2

Antworten

Frage


Grading MATLAB assignments automatically
Hi Everybody, I had a kind of an odd question, as part of my job, I am required to grade 80 students MATLAB functions and scr...

mehr als 13 Jahre vor | 6 Antworten | 0

6

Antworten

Frage


Problems using imellipse and imfreehand in the same function
Hi, I am developing a very simple GUI that will allow users to circle parts of a pixel or select a region by freehand drawing...

mehr als 13 Jahre vor | 3 Antworten | 0

3

Antworten

Mehr laden