Solved

Return the first and last character of a string

Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

27 days ago

Solved

Swap the input arguments

Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

29 days ago

Solved

Check if number exists in vector

Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

29 days 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]; ...

29 days ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

29 days ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

29 days ago

Solved

Reverse the vector

Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

29 days ago

Solved

Length of the hypotenuse

Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

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

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

30 days ago

Solved

Finding Perfect Squares

Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

30 days ago

Solved

Maximum value in a matrix

Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

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

30 days ago

Submitted

Clipboard2WorkSpace

Clipboard2WorkSpace is a script to import tabular data from the clipboard (e.g data from an excel sheet )

1 month ago | 2 downloads |

Question

When I open the application that I ceate in appdesigner it shows me error

I install my application in computer that doesn't have matlab , and I also install the runtime R2018b because I use this versio...

4 months ago | 0 answers | 0

Question

How to use variables from buttonApushed function in a buttonBpushed function

there are some cell arrays created when I push browse button and I need to work on those cell arrays when I push add data bu...

4 months ago | 0 answers | 0

Question

how to add a photo in the background of an app in appdesigner

how can I use an image in the background instead of just using a color (the blue one) is this possible

5 months ago | 2 answers | 0

Question

How can I work on many ranges in the same time

I want to use the function SetBorders to many ranges not on an excel file SetBorders(sheet1,'H','P',startRange,endRange); SetB...

5 months ago | 0 answers | 0

Question

I want to add all borders to range in excel file

when I want to add borders to the range A26:A31 just the first function works so just the bottom border been added can someon...

5 months ago | 0 answers | 0

Question

an element of a cell array doesn't appear when I send to excel file

I want to change out(8,2) to be 'S-PC-K6301' I use this trick it becomes like this but when I send the cell array to my e...

5 months ago | 0 answers | 0

Question

Is it available to change the end of a loop for inside it?

the size of my variable out changes inside the loop for so that's why I recalculate it inside it but the loop variable i sto...

5 months ago | 1 answer | 0

Question

append new rows in the middle of an excel file's sheet

I am working on an excel file using actx function then I want to add some rows in the middle of the sheet is there a way to s...

5 months ago | 1 answer | 0

Question

why nothing changes on my excel file when it is open

I am trying to send data from matlab to excel file, that works well when the file is closed ( mean on Microsoft Excel ), however...

5 months ago | 1 answer | 0

Question

error using contains function

when I use contains function in a loop it show me that error message, even though Raw is a cell array, and also the compilat...

5 months ago | 1 answer | 0

Answered

STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)

For i=1:rowFr(1,1) new_frequency(i,1)=str2double(frequency(i,1)); And it works

STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)

For i=1:rowFr(1,1) new_frequency(i,1)=str2double(frequency(i,1)); And it works

5 months ago | 0

| accepted

Question

STRING ARRAY TO NUMERIC VALUES ( I want to change the array's type to plot the graph, even though I use double function or str2num that doesn't change anything and it still string)

5 months ago | 2 answers | 0

Question

how can I use the clipboard function to directely save this string array on workspace WITHOUT OPENING THE IMPORT WIZARD

5 months ago | 0 answers | 1

Question

Is it possible to collecte data from OMNITREND by using a matlab script ?

Is it possible to collecte data from OMNITREND by using a matlab script ?

6 months ago | 0 answers | 1