Answered

How can I use pushbuttons in GUI to categorize a "like" or "dislike" of a image

Here is a very simple away around this... in the directory where you have the images try the following code: im = imageDatast...

How can I use pushbuttons in GUI to categorize a "like" or "dislike" of a image

Here is a very simple away around this... in the directory where you have the images try the following code: im = imageDatast...

alrededor de 3 años ago | 0

Answered

How to get environment password in script/function

The MathWorks does have a Database toolbox which does exactly what you are describing. That being said you probably would have t...

How to get environment password in script/function

The MathWorks does have a Database toolbox which does exactly what you are describing. That being said you probably would have t...

alrededor de 3 años ago | 0

Answered

i want to download MATLAB Arduino support package. How i can ???

This should help: https://nl.mathworks.com/matlabcentral/fileexchange/47522?download=true I got this link from: https://nl.ma...

i want to download MATLAB Arduino support package. How i can ???

This should help: https://nl.mathworks.com/matlabcentral/fileexchange/47522?download=true I got this link from: https://nl.ma...

alrededor de 3 años ago | 0

Answered

Read the output line by line

Hi, Not sure if I understand the problem correctly... are you trying to given an image with text get the text into MATLAB? If ...

Read the output line by line

Hi, Not sure if I understand the problem correctly... are you trying to given an image with text get the text into MATLAB? If ...

alrededor de 3 años ago | 0

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

alrededor de 3 años ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

alrededor de 3 años ago

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

alrededor de 3 años 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...

alrededor de 3 años ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

alrededor de 3 años ago

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

alrededor de 3 años ago

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

alrededor de 3 años ago

Answered

Creating the Snake game using a classdef

Try adding drawnow after the plot.

Creating the Snake game using a classdef

Try adding drawnow after the plot.

alrededor de 3 años ago | 1

| accepted

Answered

How can I get the maximum line of multiple graphs, starting from different x-values?

Maybe I miss understood but you could use min and max to achieve this: t = 0:.1:2*pi; for i = 1:4, y(i,:) = sin(t*i*2*pi);end;...

How can I get the maximum line of multiple graphs, starting from different x-values?

Maybe I miss understood but you could use min and max to achieve this: t = 0:.1:2*pi; for i = 1:4, y(i,:) = sin(t*i*2*pi);end;...

alrededor de 3 años ago | 0

Answered

How to fix number of elements in for loop?

There are couple of things here however the first is to get your code working: q= 0.2; E = 200*10^8; a= -6:6; n=numel(a); ...

How to fix number of elements in for loop?

There are couple of things here however the first is to get your code working: q= 0.2; E = 200*10^8; a= -6:6; n=numel(a); ...

alrededor de 3 años ago | 1

| accepted

Answered

Write to txt, delimited by char(10)

x = ['a' char(10) 'b']; fp = fopen('test.txt','w'); fwrite(fp,x); fclose(fp); I am on a Mac and using R2018b. That being sai...

Write to txt, delimited by char(10)

x = ['a' char(10) 'b']; fp = fopen('test.txt','w'); fwrite(fp,x); fclose(fp); I am on a Mac and using R2018b. That being sai...

alrededor de 3 años ago | 0

| accepted

Answered

color of line plot with marker problem

There are a couple of ways to solve this (I am using R2018b): plot(x,y,'-s','MarkerSize',10,'Color','red',... 'MarkerEdgeCol...

color of line plot with marker problem

There are a couple of ways to solve this (I am using R2018b): plot(x,y,'-s','MarkerSize',10,'Color','red',... 'MarkerEdgeCol...

alrededor de 3 años ago | 0

Answered

Checking/Counting values in a given Timewindow

Hi JamJan, If I understand correctly you have a matrix with 2 rows, the first row shows times, and the second 1. You are aski...

Checking/Counting values in a given Timewindow

Hi JamJan, If I understand correctly you have a matrix with 2 rows, the first row shows times, and the second 1. You are aski...

alrededor de 3 años ago | 1

Answered

Can I write the output of a 'summary' command of a 'table'-variable to a variable ?

I believe as of R2017b you can do the following: a = summary(tab) This will return a structure with the information that s...

Can I write the output of a 'summary' command of a 'table'-variable to a variable ?

I believe as of R2017b you can do the following: a = summary(tab) This will return a structure with the information that s...

alrededor de 3 años ago | 0

Answered

How i Calculate the average number of even numbers in an array?

Hi Tomer, I am not sure if I understand your question correctly. In MATLAB to calculate the average you would use the func...

How i Calculate the average number of even numbers in an array?

Hi Tomer, I am not sure if I understand your question correctly. In MATLAB to calculate the average you would use the func...

alrededor de 3 años ago | 0

Answered

How to copy and paste a single row in an excel file to another excel file?

I am using R2018b, and there are a couple of ways of solving this. I like the following: ds = spreadsheetDatastore(pwd,'Range...

How to copy and paste a single row in an excel file to another excel file?

I am using R2018b, and there are a couple of ways of solving this. I like the following: ds = spreadsheetDatastore(pwd,'Range...

alrededor de 3 años ago | 0

| accepted

Answered

Image plot I am not able to create

I am using R2018b: a=readtable('dte2.txt'); plot(a.x_coordinate,a.y_coordinate,'.') Does this help?

Image plot I am not able to create

I am using R2018b: a=readtable('dte2.txt'); plot(a.x_coordinate,a.y_coordinate,'.') Does this help?

alrededor de 3 años ago | 0

Solved

Add more zeros

Find code that adds one 0 to each sequence of 0 in a string (composed with only 0 or 1). For example: '1010' -> '100100' ...

alrededor de 3 años ago

Solved

Reverse the Words (not letters) of a String

*Description* Change the words of a string such that the words appear in reverse order. You may assume that the string is a n...

alrededor de 3 años ago

Solved

Space Saver

Remove all characters that are below a space in ASCII value.

alrededor de 3 años ago

Solved

Cell Counting: How Many Draws?

You are given a cell array containing information about a number of soccer games. Each cell contains one of the following: * ...

alrededor de 3 años ago

Answered

Histogram: put mean and std in the legend

I am using R2018b and my understanding is that you want to have: each line on your plot not named data, but the legend itself h...

Histogram: put mean and std in the legend

I am using R2018b and my understanding is that you want to have: each line on your plot not named data, but the legend itself h...

alrededor de 3 años ago | 1

Solved

Fill a zeros matrix

The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...

alrededor de 3 años ago

Solved

Replicate elements in vectors

Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

alrededor de 3 años ago