Answered
when i write functions in matlab it not recognizing?
It ran for me with no errors. Note that you never actually call either nestFunction() or localFunction(). You just assign func...

2 days ago | 1

| accepted

Answered
Please help me convert equation to matlab code
Use sqrt() for square root, pi for pi, commas between columns, and semicolons between rows. For example m = [0, 1, pi; sq...

2 days ago | 0

Answered
How to extract data with multiple headerlines locations, with a differing number of headerlines per file?
Generally for something this complicated, you need to write a custom reader for the file. Attach a sample data file and say wha...

3 days ago | 0

Answered
Find Command not working.
It's probably not exactly 0.6. Try ismembertol().

3 days ago | 0

Answered
How to add zero points in a function
If h is your signal, assign the last element to be zero h(527) = 0; The in between values will be automatically filled with ze...

3 days ago | 0

| accepted

Answered
Convergence for thermal mass
Use writetable() to write your table to Excel. Use max() to clip your values to -5 or above data = max(data, -5);

3 days ago | 0

| accepted

Answered
why is my vector empty
Maybe you mean this: N=input('what is N? ') % establishes N all_A = {}; A=[]; loopCounter = 1; while true s = input('gi...

3 days ago | 0

| accepted

Answered
Extract data from a web page
Try turning that imcomprehensible mess of XML into an organized structure with the attached function: url = char(strcat({'https...

3 days ago | 0

Answered
How to segment 2 circles as left and right?
Not sure who told you to do that useless stuff but I'd be careful taking advice from them anymore. Sharpening the image, then b...

3 days ago | 0

Answered
4x4 matrix with numbers from 1 to 4 in specific order
You need to put r in in reverse order, so assuming you're not allowed to use flipud(r), try: r = 1:4 M(1:4, 4)= r(end : -1 : 1...

3 days ago | 0

| accepted

Answered
HOW TO LINK MATLAB FILE THROUGH MICROSOFT WORD?
You could make a macro so they could run the macro. View tab -> Macros -> Record Macro Though I'm not sure if the macro can ...

3 days ago | 0

Answered
How can I plot average loop graph as given in the image
I'd start by looking at splitapply(), grpstats(), or groupsummary() to get the average of each unique pair of (x,y) coordinates....

3 days ago | 0

Answered
Unrecognized function or variable
You have another file that is required called importfile() that is not found in your current folder or on your search path. Use...

3 days ago | 0

Answered
how to convert 1x2 double into two 1x1
Try this to create 2 separate variables out of that 1x2 cell array Time_msg_match1 = Time_msg_match{1}; Time_msg_match2 = Time...

3 days ago | 1

| accepted

Answered
How can I decrease the frame rate of a video?
You could write a new video with the same frames but specify a different frame rate property. I'm attaching a demo of how to cr...

4 days ago | 0

Answered
Highlight a specific part within an image
Try something like stdfilt() or entropyfilt() to identify the rough region.

4 days ago | 0

Answered
How can we know whether the current execution of command is conducting inside a function or not?
You can call fprintf immediately upon entering and just befor leaving the function: fprintf('Entering MyFunction().\n'); fprin...

4 days ago | 0

Answered
segment skull out of Mri image
There are lots of ways to do it depending on what method you want to use and how accurate you'd like it. If you want to do it b...

4 days ago | 0

Answered
how would I input this equation into MATLAB
Like this chiSquared = sum(((y - m) ./ sigma) .^ 2);

4 days ago | 0

Answered
How to make a standalone software which accepts excel files.
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_make_a_standalone_executable_from_my_MATLAB_code.3F

4 days ago | 0

Answered
circle marker weird filling
Try a dot plot(time,strain,'b.-','Color',C2,'LineWidth',lw,'MarkerSize',ms,'MarkerEdgeColor',C2,'MarkerFaceColor',C2);

4 days ago | 0

Answered
How do i plot equal size of circle in square(100*100 m^2) without overlapping?
Click on the "circle packing" tag on the right. This has been asked many times and there are several solutions with slight vari...

4 days ago | 1

| accepted

Answered
how to calculate mean and standard deviation, from the image then subtracted from the original image iteratively using matlab ?
For local mean, use imfilter, or conv2() kernel = ones(5)/25; localMeanImage = conv2(double(grayImage), kernel, 'same'); For ...

4 days ago | 0

| accepted

Answered
Personalized RGB Masked Image
I'm not sure what you are asking. So what does your original image look like? What do you mean that you want white, black, and...

4 days ago | 0

| accepted

Answered
Color Thresholder tool runs out of memory
You should reduce the pixel dimensions by a factor of 50 or 100. There is no need to have such a huge image for determining the...

4 days ago | 0

| accepted

Answered
Unable to activate your machine
Well I'd do what it says : "refer to the following solution ID, to help resolve this issue: 1-661QJD”. What happened when you d...

4 days ago | 0

Answered
How do I cut the signal into several parts?
Please post the graph along with annotations about where you want to do things to the signal. Did you try thresholding? quietI...

5 days ago | 0

Answered
k means clustering shows only blank image if i loop it k times
See attached demos.

5 days ago | 0

Answered
How can I make a function be run with only teenager variables in matlab
Try this: function A = optim(B, C, D, E) % Clip values to a defined range B = max([1, B]); % Clip so there are no values lowe...

5 days ago | 0

| accepted

Answered
Selecting a row of numbers clockwise around a matrix of values
mTop = m(1, :); mLeft = m(2:end, end); mBottom = fliplr(m(end, 1:end-1)); mRight = flipud(m(2:end-1, 1)); outerValues = [mTo...

6 days ago | 1

Load more