Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

Resuelto


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

casi 13 años hace

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

Pregunta


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

casi 13 años hace | 1 respuesta | 0

1

respuesta

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

casi 13 años hace | 0

Resuelto


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

casi 13 años hace

Pregunta


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

casi 13 años hace | 2 respuestas | 1

2

respuestas

Resuelto


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

casi 13 años hace

Pregunta


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

casi 13 años hace | 3 respuestas | 1

3

respuestas

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

casi 13 años hace | 0

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

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

alrededor de 13 años hace | 0

| aceptada

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 3

| aceptada

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

alrededor de 13 años hace | 1

Pregunta


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

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

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

alrededor de 13 años hace | 1

Pregunta


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

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

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

alrededor de 13 años hace | 0

| aceptada

Pregunta


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

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

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

alrededor de 13 años hace | 0

Pregunta


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

alrededor de 13 años hace | 2 respuestas | 1

2

respuestas

Pregunta


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

más de 13 años hace | 6 respuestas | 0

6

respuestas

Pregunta


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

más de 13 años hace | 3 respuestas | 0

3

respuestas

Cargar más