已解决


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

12 years 前

已解决


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

12 years 前

已解决


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

12 years 前

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

已回答
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...

12 years 前 | 0

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

12 years 前 | 0

已解决


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

12 years 前

提问


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

12 years 前 | 2 个回答 | 1

2

个回答

已解决


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

12 years 前

提问


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

12 years 前 | 3 个回答 | 1

3

个回答

已回答
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...

12 years 前 | 0

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

12 years 前 | 0

| 已接受

提问


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

12 years 前 | 1 个回答 | 0

1

个回答

提问


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

13 years 前 | 1 个回答 | 0

1

个回答

已回答
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 ...

13 years 前 | 0

已回答
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...

13 years 前 | 3

| 已接受

已回答
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...

13 years 前 | 1

提问


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

13 years 前 | 2 个回答 | 0

2

个回答

提问


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

13 years 前 | 0 个回答 | 0

0

个回答

已回答
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...

13 years 前 | 1

提问


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

13 years 前 | 1 个回答 | 0

1

个回答

已回答
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...

13 years 前 | 0

| 已接受

提问


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

13 years 前 | 2 个回答 | 0

2

个回答

已回答
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...

13 years 前 | 0

提问


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

13 years 前 | 2 个回答 | 1

2

个回答

提问


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

13 years 前 | 6 个回答 | 0

6

个回答

提问


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

13 years 前 | 3 个回答 | 0

3

个回答

加载更多