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

alrededor de 7 años hace | 1

| aceptada

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 1

| aceptada

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 1

| aceptada

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 0

| aceptada

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 3

| aceptada

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 0

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

alrededor de 7 años hace | 1

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

alrededor de 7 años hace | 1

| aceptada

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

alrededor de 7 años hace | 0

Cargar más