A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

A résolu


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

presque 13 ans il y a

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 0

Réponse apportée
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...

presque 13 ans il y a | 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. ...

presque 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

presque 13 ans il y a | 0

A résolu


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

presque 13 ans il y a

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

presque 13 ans il y a | 2 réponses | 1

2

réponses

A résolu


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

presque 13 ans il y a

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

presque 13 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
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...

presque 13 ans il y a | 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...

environ 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

environ 13 ans il y a | 0

| A accepté

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

environ 13 ans il y a | 1 réponse | 0

1

réponse

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

environ 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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 ...

environ 13 ans il y a | 0

Réponse apportée
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...

environ 13 ans il y a | 3

| A accepté

Réponse apportée
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...

environ 13 ans il y a | 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...

environ 13 ans il y a | 2 réponses | 0

2

réponses

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

environ 13 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
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...

environ 13 ans il y a | 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...

environ 13 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

environ 13 ans il y a | 0

| A accepté

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

environ 13 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
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...

environ 13 ans il y a | 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...

environ 13 ans il y a | 2 réponses | 1

2

réponses

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

plus de 13 ans il y a | 6 réponses | 0

6

réponses

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

plus de 13 ans il y a | 3 réponses | 0

3

réponses

Charger plus