Answered
the error " Assignment has more non-singleton rhs dimensions than non-singleton subscripts" when happen?
There is an orphaned "= 1" in the line: Index(1,:)=randi(1,K,length(QPSK_Set))=1; % ^^ MA...

8 years ago | 0

| accepted

Answered
How to find and replace extreme pixels in image for loop
By the way: you define the folder, but do not use it. It is possible, that this is the only problem, although this is unlikely: ...

8 years ago | 0

| accepted

Answered
Put a limit value on contour and plot3
For plot3 you can use the FEX submission https://www.mathworks.com/matlabcentral/fileexchange/5735-plot3c . For contour whould s...

8 years ago | 0

Answered
How to split array vector into sub vectors based on the max value of the original array?
a = [ 120.9, 50.5, 20.3, 80.7, 12 , 70, 100, 15.4, 40, 10, 130.6, 25.3]; n = 3; maxa = max(a); result = cell(1, n); mask...

8 years ago | 0

| accepted

Answered
hello i'm sowjanya a postgraduate in orthodontics need a help regrading thesis
The requested function is extremely specific. I do not expect that anybody, who has written such a code participates in the foru...

8 years ago | 0

Answered
Is there a way to solve a 1st ODE with unknown initial values?
An integration means adding the current velocity (derivative) multiplied by the amount of a time step (of infinitesimal size in ...

8 years ago | 0

| accepted

Answered
How to read strings and numbers in a text file?
% Import the file: key = 'SET LEVEL'; new = 5.0; file = 'Test01.txt' cstr = strsplit(fileread(file), '\n'); % Find ...

8 years ago | 0

| accepted

Answered
Concurrent interaction using functions
You have to modify the code of bounceFunc to accept arrays for all inputs: function bounce = bounceFunc(obj, addx,addy,x,y) ...

8 years ago | 1

| accepted

Answered
How to readtable filtering columns and rows?
There would not be a big advantage, if readtable filters the contents of the data already, because it has to read the complete f...

8 years ago | 0

| accepted

Answered
Two axes GUI plot when i run it for the third time...
This seem to be trivial. After: function test2_OpeningFcn(hObject, eventdata, handles, varargin) handles.output = hObject; T2...

8 years ago | 0

Answered
Large streaming data direct to file
You can create the text as chat vector by sprintf instead of fprintf and compress it in the RAM before writing them to disk: htt...

8 years ago | 0

Answered
How to use imhist() to generate a plot from loop of images?
Omit the cd() but work with abosulte path names, because this is much safer and avoid common pitfalls. faces_folder = '/Users/M...

8 years ago | 0

| accepted

Answered
when i use 3D commands like regionpros3( dicom image,'All'); my system very slow to get answer ,how to increase speed ?
It depends. What exactly is "dicom image"? Maybe it is teh name of a file, which is stored on a slow network drive. Then store i...

8 years ago | 0

| accepted

Answered
ODE45 say ' must return a column vector' with experiment data.
"I used 'interp1' for chagning [9000x1] to [1x9000] vector." This is not the right job for an interpolation, but this is simply...

8 years ago | 0

| accepted

Answered
Function IND2GRAY expected input number 2, MAP, to be a valid colormap.
Maybe " i convert them to BMP using online converter" was a bad idea. Why don't you use the JPG files directly? Matlab can acces...

8 years ago | 1

| accepted

Answered
How to store matrix in a txt file with Row and Column name?
Your code looks almost fine. So what is the problem withit? MEEM_Orig_Path = '/home/directory'; % Assiging directory [...

8 years ago | 0

Answered
How to name by checking the entrys of a table?
"FG1_O0_SO_D15_LL_C1" seems to be an extremely ugly name for a variable or name of a table column. Here you hide important infor...

8 years ago | 0

| accepted

Answered
How can I extract the values from a 5000x2 matrix?
Maybe: index = (X < -1 & Y > 1); XY = [X(index), Y(index)]

8 years ago | 1

| accepted

Answered
How can I generate random numbers to plot my graph?
x = round(-50 + rand(1000,1) * 100, 4); y = round(-50 + rand(1000,1) * 100, 4); See: doc rand and doc round . Alternati...

8 years ago | 0

| accepted

Answered
How to turn off drawrectangle?
An interesting question! The documentation https://www.mathworks.com/help/images/ref/drawrectangle.html does not reveal this imp...

8 years ago | 0

| accepted

Answered
I want to get currentlytyped character from editfiled becuase I want to change every current character into password character (*). Kindly help me Thanks
You find many many many solutions for password dialogs in the FileExchange. Simply search for the keyword "password": https://w...

8 years ago | 0

| accepted

Answered
How do I insert a variable text string in matlab plot?
Start with omitting the clear all, because this is a waste of time only. The error message is clear: Your t is the output of ode...

8 years ago | 2

Answered
How to delete lines before a particular character from .txt files?
File = 'tdump18020910.txt'; Str = fileread(File); CStr = splitstr(Str, '\n'); match = find(contains(CStr, 'PRESSURE', 'Ig...

8 years ago | 1

Answered
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 2.202823e-18.
The error message is clear. I guess it occurs for this line: W=inv(Sw)*SB; This means, that Sw is ill-conditioned, such that t...

8 years ago | 1

| accepted

Answered
How to modify the function/script model at the creation ?
You find some tools to define a default function in the FileExchange, e.g.: * <https://www.mathworks.com/matlabcentral/fileex...

8 years ago | 0

| accepted

Answered
Waitbar jumps to center screen on update
Updating the |waitbar| does not change the position of the window. So if you observe a changed position, your code must contain ...

8 years ago | 0

| accepted

Answered
Comparing column vector of different length
This seems to be a job for |ismember|, |setdiff|, |union| or |intersect| depending on what "compare" means. If this does not hel...

8 years ago | 0

Answered
Searching MATLAB Answers forum with exclusion criteria
According <https://www.mathworks.com/matlabcentral/answers/help?s_tid=gn_mlc_ans_hlp#search to the documentation> (link): To...

8 years ago | 2

| accepted

Answered
how to properly call a function in a separate m-file?
"Undefined function or variable 'fourierCompute'." This means, that the |fourierCompute.m| is not found in the |path| or t...

8 years ago | 1

Answered
matlab loop code to save figures
See <https://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files FAQ: How to process a seque...

8 years ago | 0

Load more