Answered
cell and matrix and for roof function
First, what is the point of: Ncell_1=11; Ncell_2=21; Ncell_3=31; Ncell_4=41; Ncell_5=51; Ncell_6=61; Ncell=[Ncell_1,Ncell_2,Nc...

10 dagen ago | 0

Answered
Loop through CSV (or XLS), compare values in rows and create new Cell Array based on results
As I commented, in my opinion what you're asking is not a good idea. Using cell arrays of cell arrays just make it more difficul...

10 dagen ago | 1

Answered
Probability in printing text
Use randi to choose an integer between 1 and the number of strings, use that to index into a cell array of char vector or a stri...

10 dagen ago | 1

Answered
While assigning a variable, is the variable cleared by default before the assignment?
Is output, internally cleared before executing the next loop? No. A variable is only cleared if you assign something else to ...

11 dagen ago | 1

| accepted

Answered
Multiplication of rows in a single column
prod(yourvector)

11 dagen ago | 0

Answered
Why do I get .txt extension eventhough it isn’t?
That reminds me that's something I wantedto discuss with Mathworks as it's indeed annoying. The reason has nothing to do with y...

11 dagen ago | 4

| accepted

Answered
How can I divide a week of a timetable into hours
hourlytimetable = retime(yourtimetable, 'hourly', 'mean')

11 dagen ago | 1

| accepted

Answered
Error on GUI code
I believe that the error in gui_maifcn is the problem of having the other two errors. Well, to be precise the error comes from ...

11 dagen ago | 0

Answered
Table manipulation of matrix
Your question is really badly explained but I think I've understood what you want. My understanding is that you have a J matri...

11 dagen ago | 0

| accepted

Answered
How can I convert gray image to binary image on ”specific” value of luminescence
It's simple comparisons and logical operations: lower than 0.4 to black, higher to white (what about 0.4?) result = yourgreyim...

11 dagen ago | 0

Answered
convert the datenum to date
d = 726329; datetime(d, 'ConvertFrom', 'datenum', 'Format', 'dd-MM-yy') %recommended, although I'd recomend using yyyy inste...

11 dagen ago | 1

Answered
How do I change values in an array based upon its previous value?
Assuming you've made a mistake in your second step (see comment), this is trivially achieved with imdilate (requires image proce...

11 dagen ago | 0

| accepted

Answered
how to create an object with "handle like" properties and "value like" assignment
That is simply not possible in matlab. "I want to make my api accessable to novice/average users and eliminate potential pitfal...

12 dagen ago | 0

Answered
Writetable() to csv in different cells
table=table2cell(table); writetable(table,filename); will produce an error and not create any file, since the misleadingly nam...

12 dagen ago | 0

Answered
Error using vertcat: dimension of arrays being concenated are not consistent
The error is simple. At least one of the rows of your A does not have the same number of elements as the others. Certainly, 0 ...

12 dagen ago | 0

| accepted

Answered
error: no matching constructor for initialization of ... and mexFunction
I've fixed the link in comment. Note that you would still use mex, but the C++ mex interface instead of the C interface. Regard...

12 dagen ago | 1

Answered
How to create a script in Matlab
It's a bit puzzling that you are aware of timetables and yet resort to deprecated functions such as histc (which has no concept ...

15 dagen ago | 0

| accepted

Answered
How can I write an excel file using the timer on MATLAB?
As others have said, defining the timer function as a string is the worst way of doing it. You get no syntax highlighting, no ta...

15 dagen ago | 2

Answered
Outputting imported files in Matlab App Designer
At no point does your code attempt to import anything. DLR_siteA=fullfile(path,file); Ok, this store the full path of the file...

16 dagen ago | 0

| accepted

Answered
I didn't know how to define my vector
In my version of matlab (R2019a), passing a vector to linspace give the following error: Error using linspace (line 22) Inputs...

16 dagen ago | 0

Answered
Could anyone help me to solve the error in the following code
There are many problems with your code. I gave up trying to guess which line is causing your error because of these. In any case...

16 dagen ago | 1

Answered
How to convert binary to floating points?
wavsingle = typecast(uint8(sum(wavbinary .* 2.^(7:-1:0), 2)), 'single')

17 dagen ago | 0

Answered
Import files into Matlab and compare values
Your question is not really clear. Does it matter that your data is in a spreadsheet? As far as I can tell, at the moment you're...

18 dagen ago | 1

| accepted

Answered
Audio file, Numerical amplitude data in table
It's trivial to convert your audio data to a timetable you can then retime that timetable to whichever period you want using whi...

19 dagen ago | 1

| accepted

Answered
detection of hottest spot in wire
WHAT IS THE MEANING OF LINE filteredImage = imtophat(grayImage, true(50)); It performs top hat filtering of the image, using a ...

19 dagen ago | 0

| accepted

Answered
Error using fseek - while running the matlab code. Input to the program looks fine.
Which version of matlab are you using (there's a field on the right at the top of this web page for you to fill in)? From the er...

19 dagen ago | 2

Answered
How do I pass a string from a C++ Mex file to the MATLAB workspace?
matlab:engine::setvariable seems to be the function to do that. With your original C++ code (not the C interface) matlabPtr->se...

19 dagen ago | 1

| accepted

Answered
Generating all ordered samples with replacement
For and , n = 20; k = 5; result = dec2base(0:n^k-1, n); %generate all n^k samples with replacement, as char vector 0-9 +...

19 dagen ago | 0

Answered
How do I find the element address in an array involved in a loop by applying conditions?
You haven't shown us how T is defined. Presumably it's an array with at least m+1 elements. This is not going to help with your...

19 dagen ago | 0

| accepted

Answered
separation of similar strings in cell array and store in different variables?
One way: [~, ~, subs] = unique(data1(:, 1)); var = accumarray(subs, (1:size(data1, 1)).', [], @(rows) {data1(rows, :)})

20 dagen ago | 1

| accepted

Load more