Answered
Error using readtable. File extension txt not recognized
You can look at the code that |readtable| uses to detect the filetype (in |matlabroot\toolbox\matlab\datatypes\@table\readFromFi...

10 years ago | 0

Answered
I had partitioned the image ('cameraman.tif' )into 8-bit map images ( C1, C2, C3, C4, C5, C6, C7, C8) but unable to rejoin to get back the original image 'C' as shown below in the related code in the Body Section.
The first thing where you've gone wrong is to create all these C* images. If you're numbering variables, you're doing something ...

10 years ago | 0

| accepted

Answered
How to get pixelcount in image.
What pixel count? |imhist| returns the number of pixels at each of 256 different gray levels. If you want more or less intens...

10 years ago | 0

Answered
What does it means to put a pixel in -inf in a matlab code ?
Without context (which you haven't provided), it means exactly the same as setting that pixel to 0, or 5 or 1000 or any other ar...

10 years ago | 0

Answered
How to calculate a series of points without using loop statement? 25 points equally distributed along a total length
Use <https://www.mathworks.com/help/matlab/ref/linspace.html |linspace|>: startpoint = 0; endpoint = l; numpoints = 2...

10 years ago | 1

| accepted

Answered
Converting matrix to binary matrix and then saving the matrix to excel
As pointed out by <http://uk.mathworks.com/matlabcentral/answers/315885-exporting-binary-matrix-to-excel#answer_246370 Walter in...

10 years ago | 0

| accepted

Answered
Why is it Showing this error?
There is a big difference between |elseif| and |else if|. The first one continues the previous |if| statement, and thus you only...

10 years ago | 0

| accepted

Answered
Mean values of cell arrays
As others have said, using a cell array for storing matrices all the same size is a waste as it makes manipulation harder. So, t...

10 years ago | 2

Answered
Looping through bytes of a variable
From your example, I'm not sure that you actual want to swap the *bytes* of the number, but actually want to swap the decimal di...

10 years ago | 0

| accepted

Answered
How can I create a new table in a Microsoft Access database and import data to it using Matlab?
Access SQL syntax documentation is arguably one of the worst documentation produced by Microsoft (who can also produce some of t...

10 years ago | 1

| accepted

Answered
Is there a comand to select variables with a specific name from workspace
Much safer would be using the form of |load| that load the mat file into fields of a structure (by simply giving an output varia...

10 years ago | 0

| accepted

Answered
how to remove a column from a character matrix?
You remove the last column of any matrix, regardless of what type of data it contains, even characters, the same way with: ...

10 years ago | 0

Answered
Gradient command producing multiple functions
Ah, language. It's so hard to get yourself understood if you don't use the correct terms... The <https://www.mathworks.com/he...

10 years ago | 1

Answered
Faster interpolation than interp2 ?
|griddedInterpolant| may be marginally faster than |interp2| since |interp2| does a little bit of argument manipulation before f...

10 years ago | 1

| accepted

Answered
Hello.. i'm a beginner in matlab.. what i want to ask is, can i open and display obj file in matlab? i have try the readobj file and display_obj file.. the problem is i can read the obj file, but i can't display the obj file in matlab.
Note that your question is about some software written by somebody in matlab, it's not about matlab per se. The best place for y...

10 years ago | 0

Answered
shaping matrix w.r.t. the array
fliplr(hankel(flip(Cyy), Cyy))

10 years ago | 0

| accepted

Answered
How to use output variables with COM objects?
Using |invoke| to call COM methods is not recommended and certainly can't be used for functions that have multiple |[out]| param...

10 years ago | 0

Answered
How to average multiple cells into new cell?
You would be much better off using a 3D matrix (of size 317*202*numel(F_read)) instead of a cell array for storage. This is also...

10 years ago | 0

| accepted

Answered
can it be be possible to convert matlab code to labview vi without any error?
I very much doubt such a tool exist. The two are designed to accomplish very different tasks. Reliably converting arbitrary matl...

10 years ago | 1

| accepted

Answered
Save data at each iteration of for loop when looping through sub-matrices of 3D matrix
If I understood correctly, you don't need a single for loop. However, I'm unclear why you have 24 vertices by cube, when only 8 ...

10 years ago | 0

| accepted

Answered
How to count instances of repeated entries in a cell array?
This would work: s = '500 19873R 500 67R 95 72R 500 64R 500 35R 95 76 14R 75 60R 76 53R 95 2R 500'; %demo input s = [...

10 years ago | 0

Answered
What is the most efficient way to map big array of [0 1] to [1 -1]?
Your problem is very unclear. Where are you hitting the memory limitation? In creating the result of the XOR? In that case, what...

10 years ago | 0

| accepted

Answered
Add text to string in for-loop
If you have matlab R2016b, creating your string is extremely easy using the new |string| class and associated functions <https:/...

10 years ago | 1

Answered
How can I generate n unique random numbers between 0 and 1? (No repeated values)
Unless I completely misunderstand something rand(1, n) is all you need. The probability of getting two exactly identical...

10 years ago | 0

| accepted

Answered
I need to create a sort function without using inbuilt functions like sort min or max, to sort a 3 element vector?
Of course, it does not work for column vectors. It also does not work for vectors along the 3rd, 4th, etc. dimension. You used s...

10 years ago | 0

Answered
Is it possible to write the String and Number in the same cell of the Array?
Basic native Heterogeneous containers (ones that can hold things of different types) in matlab are cell arrays and tables (which...

10 years ago | 0

| accepted

Answered
Error using containers.Map
Note: I would avoid having variable names that only differ by one being plural and singular unless one was just a scalar element...

10 years ago | 1

| accepted

Answered
How to find vector indexes without for loops
[~, index] = ismember(8, [20, 3, 56, 7, 8, 96, 52, 22]); or index = find([20, 3, 56, 7, 8, 96, 52, 22] == 8);

10 years ago | 1

Answered
How to create variables and then use them in loops
So... you want to create a program that is going to write a program that consist of a bazillion nested for loops that are going ...

10 years ago | 0

| accepted

Answered
How to change pixel intensity in a color picture
Well, yes, if your image is RGB, you have 3 colour planes in the third dimension. You need to tell matlab that you want to affec...

10 years ago | 1

| accepted

Load more