Answered
How can I get a class property to be overridden and handled as a variable?
There are various ways to customise properties such as dynamic properties. However, what you're looking at here with table has ...

7 years ago | 1

| accepted

Answered
how to create loops to automatically select next bits??
in mat b i want to put 1st 16 bits of data from mat a and perform a mutiplication with another matrix which is 16 bits of binary...

7 years ago | 0

Answered
to plot binary data for the predefined time interval
plot means many things. You need to clarify what sort of plot you want. Possibly: sampleddata = timetable(x(:), 'SampleRate', ...

7 years ago | 0

| accepted

Answered
Why is MATLAB 2018b unable to find the Microsoft Visual C++ compiler after installing Microsoft Visual Studio 2019 community?
See https://www.mathworks.com/support/requirements/previous-releases.html for the list of supported compilers for each version o...

7 years ago | 0

Answered
appending data to CSV file with write matrix since dlmwrite is not recommended?
No idea if writematrix will support it in the future (certainly that would be nice) but currently, no, you can't append to a fil...

7 years ago | 0

| accepted

Answered
readcell is filling cell locations with "1x1 missing"
If your data (excluding header) is purely numeric, you'd be better off using readmatrix instead of readcell. If your date is het...

7 years ago | 0

| accepted

Answered
how to implement structfun using 2 variables
Not entirely sure what you're asking, structfun applies the same function to each field of a scalar structure. It doesn't look l...

7 years ago | 1

| accepted

Answered
How do I break while loop using a switch in app designer
As I said, a much cleaner design is to have the timer as an App property and initialise it int the StartupFcn. The only thing yo...

7 years ago | 1

Answered
less than or equal as symbol in prompt of inputdlg
≤ is unicode U+2264, One way to insert it into text is with another sprintf: sprintf('enter number (5 \x2264 x \x2264 50):') Y...

7 years ago | 0

| accepted

Answered
Could anyone help me how to display the top three highest values in each column and display the other values to be zero.
Getting the top 3 values of each column is trivial with maxk top3 = maxk(A, 3, 1) I don't see the point in having 0s below the...

7 years ago | 0

| accepted

Answered
Array Indicates msut be integer
I would strongly recommend you do not use End as a variable name. It's too close to the keyword end. Use a more meanigful name a...

7 years ago | 1

Answered
Using webread for a website and all of its hyperlinked subwebsites
Even for your initial task of finding the pdf links in a html, I would argue that webread is not a good tool for the job as the ...

7 years ago | 0

Answered
For Loop or if condition ignores the first value
Note that for loops iterating over a whole matrices, it's safer to plug the matrix size directly into the loop rather than relyi...

7 years ago | 0

Answered
charge to my card
Unfortunately, there's not much we can do here. We (the people answering questions) are just volunteers, not mathwork employees...

7 years ago | 0

Answered
Moving Mean Function - How to apply
movmean(yourvector, [3, 0], 'Endpoints', 'shrink'); %3 values backward (plus current value), 0 forward. Shrink at edges (beginn...

7 years ago | 0

| accepted

Answered
Extracting pixels from an image random
One way: row = randi(size(yourimage, 1), 100, 1); %select 100 row coordinates at random col = randi(size(yourimage, 1), 100, ...

7 years ago | 0

| accepted

Answered
Find the last non-nan in large array
One way: %m: a 4D matrix (time x depth x lat x lon [~, idx] = max(cumsum(~isnan(m), 2), [], 2) This relies on the fact that m...

7 years ago | 1

| accepted

Answered
Hi, I have a code in MATLAB which tries to zero detect, i am trying to convert the same to C but i am having trouble loading the data.
The name of your function generatezeros is very misleading since what that function does is find the first 3 and the last indice...

7 years ago | 1

Answered
Want to get 16 bit information of depth from Kinect v1??
Problem is the Raw images of NYU are in 16 bits after which he applies swapbytes Ok, they get get raw data a 16-bit big-endian ...

7 years ago | 0

| accepted

Answered
6 hump camel function - What is wrong with the code?
The overuse of unnecessary brackets and the lack of any spacing make your expression very hard to read. Multiplying by 1 will n...

7 years ago | 0

| accepted

Answered
Array indices must positive or integers because I have decimals in mymatrixes
The actual indexing (of croppedz) in line 18 cannot produce an Array indices must be positive integers or logical values error. ...

7 years ago | 1

Answered
comparing strings in alphabetical order
Even simpler, use strings instead of char vector. Comparison operators work on the whole string instead of on characters S1 = "...

7 years ago | 0

Answered
Find all lines of a matrix which have a matching pair of values
I don't see how you can avoid doing size(A, 1) * (size(A, 1)-1) / 2 comparisons of the rows one way or another. The problem with...

7 years ago | 0

Answered
extracting data from hex
Easiest way is to use sscanf instead of hex2dec. sscanf with the '%x' format specifier understand '0x' notation directly: >> ss...

7 years ago | 1

Answered
set editField 'invisible' in app-designer problem
A uieditfield control is just the box where you enter your text or number. It looks like that's what you've set to invisible. Ne...

7 years ago | 3

| accepted

Answered
could anyone help me how to select four maximum values of each row in a matrix size(10,8)
As I commented here (please don't ask the same question multiple times, thus wasting people's time), the simplest way in modern ...

7 years ago | 0

Answered
Multiple IDs for the same Query in MongoDB
Seems more like a question on how to write MongoDB queries rather than about matlab. Going by the documentation there and there,...

7 years ago | 0

Answered
Identifying blocks of data from a cell array having the same header
Assuming that the runs of identical headers are always continuous header = repelem({'Day 12', 'Night 24', 'Morning 3'}, [4, 6, ...

7 years ago | 1

Answered
Calculating the number of integers present after a specific value appears in an array
No need for a loop: x = [0 7 7 7 7 9 0 9 9 9 9 7 0 7 7 7 7 0]; zerobin = cumsum(x(:) == 0); run7s = accumarray(zerobin, x(...

7 years ago | 1

| accepted

Answered
Import dates from an excel spreadsheet
One way to read that data: opts = detectImportOptions('temperature.xlsx'); %ask matlab to detect the format of the file opt...

7 years ago | 0

Load more