Answered
Undefined function 'writePosition' for input arguments of type 'double'.
Clearly, |s| is supposed to be a variable referencing the object doing the rotation, in Nick's example a servomotor. It's certai...

9 years ago | 0

Answered
Split an excel file into separate workbooks
<https://www.mathworks.com/help/matlab/ref/readtable.html |readtable|> your excel file, then use <https://www.mathworks.com/help...

9 years ago | 1

Answered
easy beginner question : how to sum up
If you're using R2016b or later, simply V1 + V1.' In earlier versions bsxfun(@plus, V1, V1.')

9 years ago | 2

Answered
How can I filter struct according to strings in field?
wantedelements = yourstructure(strcmp({yourstructure.STYP}, 'EA030')) |{yourstructure.STYP}| concatenate all the STYP field...

9 years ago | 3

| accepted

Answered
How to upload html page through webwrite?
Same as your <https://www.mathworks.com/matlabcentral/answers/334786-image-writing-using-webwrite previous question>, this all d...

9 years ago | 0

Answered
how to force a while loop to run. this code doe not like to run the last loop when x1 is equal to zero on the plot
Welcome to the world of floating point numbers where 0.1 + 0.1 + 0.1 == 0.3 is false (try it!). That is because binary...

9 years ago | 0

| accepted

Answered
Remove rows in an array containing a non-matching element
Probably the easiest: geneswithdata = readtable('data.txt'); %load file as a table geneswithdata.Properties.VariableNam...

9 years ago | 2

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
At first glance, there's nothing in your code that should generate the error message you see. But as others have pointed out, ra...

9 years ago | 0

Answered
Combining image files into one array
imagefiles = {...}; %list of files to read, obtained any way you want, e.g. with |dir|, or |uigetfile| imagevectors = z...

9 years ago | 1

Answered
compare cell array elements with non zero elements in 2D array
I assume you've made a mistake with your example result. How can you have 0 in the outptu if you only look at the non-zero value...

9 years ago | 0

| accepted

Answered
image writing using webwrite
As it is, your question makes no sense. |webwrite| is to send and receive data from a web server. Now possibly, your server acce...

9 years ago | 0

Answered
How can I change the host ID associated to my account?
With any issues with licenses, you have to contact <https://www.mathworks.com/support/contact_us/index.html Mathworks customer s...

9 years ago | 0

Answered
Hey Guys can you help me with that.
1. The task clearly says _"takes as its input argument a *char vector*"_. There is no option for the input to be numeric (howeve...

9 years ago | 0

Answered
finding cell array elements
This would do it: result = arrayfun(@(row) cellfun(@(columns) y(row, columns), x{row}, 'UniformOutput', false), ... ...

9 years ago | 0

| accepted

Answered
There is a problem in loop. Could anyone please correct my code.
It is very hard to understand what it is you want as you don't tell us *what result you want*. Really, the best for you would be...

9 years ago | 0

| accepted

Answered
How to group arrays in matrix
A = [1 1 1 2 2 4 4 7 8 8 9]' B = unique(A); B = [B, histcounts(A, [B; Inf]).']

9 years ago | 0

Answered
"Operands to the || and && operators must be convertible to logical scalar values" occurring with integer comparisons
_"both conditionals are single-value comparisons (none of E_rec, thr, n_sv and n_sv_max are vectors or matrices)"_ The first ...

9 years ago | 0

| accepted

Answered
How to use switch to choose and operator within a function?
As Adam said, your |case| syntax is not valid. The reason you got the error _Undefined function or variable 'r'_. is because ...

9 years ago | 0

Answered
Elements processing in array
You basically want the sum of the <https://en.wikipedia.org/wiki/Cartesian_product#n-ary_product n-ary product> of the +/- sets ...

9 years ago | 2

| accepted

Answered
xlsread requires internet connection?
|xlsread| delegates all the hard work of opening/reading the file to Excel. So if |xlsread| reports that it failed to open the f...

9 years ago | 1

| accepted

Answered
Generate neighbors of a string
For short strings and small d, your code is slightly faster, but for longer strings with larger d (tested with 18 chars and d = ...

9 years ago | 1

| accepted

Answered
how to read php file using matlab ?
Your question does not make much sense. PHP is not HTML, it's meant to be interpreted by the *web server* and tells the server h...

9 years ago | 0

| accepted

Answered
How do i eliminate such rows are not common between two tables?
This is called an <https://www.mathworks.com/help/matlab/ref/innerjoin.html inner join> newtable = innerjoin(table1, table2...

9 years ago | 0

| accepted

Answered
How do I save a matrix in ascii format so that the variable names are included as the first row header?
_"I have assigned variable names to each column of my matrix."_ This is *not* something that can be done in matlab. Matrices can...

9 years ago | 2

Answered
How to separate a column into two table of multiple columns?
Note that <https://www.mathworks.com/help/matlab/ref/table.html |table|> is a particular type of container in matlab. It does no...

9 years ago | 1

| accepted

Answered
Unknown amount of function inputs as a function input?
<https://www.mathworks.com/help/matlab/matlab_prog/comma-separated-lists.html This page> more or less explains the concept. Use ...

9 years ago | 0

Answered
Paste values in excel with MATLAB COM activeX
Use <https://msdn.microsoft.com/en-us/library/office/ff839476.aspx |PasteSpecial|> with an <https://msdn.microsoft.com/en-us/lib...

9 years ago | 0

| accepted

Answered
multiplying an image by (-1)
It would have taken the whole of 2 seconds for you to try it on the command line. Why didn't you? The result is either 0 (for...

9 years ago | 0

Answered
Finding the maximum value of a matrix contained in a cell
Note: avoid using subscript (2D) indexing on vectors. Prefer linear (1D) indexing. If C is a vector with 5 elements, C{5} will w...

9 years ago | 0

| accepted

Answered
How to change image shape in form of V?
Use <https://www.mathworks.com/help/images/ref/imwarp.html |imwarp|> with a <https://www.mathworks.com/help/images/ref/projectiv...

9 years ago | 0

| accepted

Load more