Solved


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

10 years ago

Solved


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

10 years ago

Solved


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

10 years ago

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Answered
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...

10 years ago | 0

Question


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

10 years ago | 1 answer | 0

1

answer

Answered
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...

10 years ago | 0

Solved


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 + ...

10 years ago

Question


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

10 years ago | 2 answers | 1

2

answers

Solved


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

10 years ago

Question


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

10 years ago | 3 answers | 1

3

answers

Answered
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...

10 years ago | 0

Question


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

10 years ago | 1 answer | 0

1

answer

Answered
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...

10 years ago | 0

| accepted

Question


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

10 years ago | 1 answer | 0

1

answer

Question


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

10 years ago | 1 answer | 0

1

answer

Answered
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 ...

10 years ago | 0

Answered
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...

10 years ago | 3

| accepted

Answered
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...

10 years ago | 1

Question


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

10 years ago | 2 answers | 0

2

answers

Question


"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...

10 years ago | 0 answers | 0

0

answers

Answered
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...

10 years ago | 1

Question


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

10 years ago | 1 answer | 0

1

answer

Answered
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...

10 years ago | 0

| accepted

Question


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

10 years ago | 2 answers | 0

2

answers

Answered
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...

10 years ago | 0

Question


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

10 years ago | 2 answers | 1

2

answers

Question


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

10 years ago | 6 answers | 0

6

answers

Question


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

10 years ago | 3 answers | 0

3

answers

Load more