Answered

string joining without inverted commas and variable pass in string.

Hi @Paramjit Yadav 1st - use a single 'postrophe': ' instead of " I have created a simple function that returnes the valu...

string joining without inverted commas and variable pass in string.

Hi @Paramjit Yadav 1st - use a single 'postrophe': ' instead of " I have created a simple function that returnes the valu...

2 månader ago | 0

Answered

Variables cannot be recognized in app designer

Hi @Xiangfeng I've just tried it, It works 100% OK Look @ the screenshot (attached) What you must make sure is that you do...

Variables cannot be recognized in app designer

Hi @Xiangfeng I've just tried it, It works 100% OK Look @ the screenshot (attached) What you must make sure is that you do...

2 månader ago | 0

Answered

left and right sides have a different number of elements.

Hi @Luca Re This is simple - since the 'i' is a logical indexing vector and is not all 'true' length(find(i)) % == 5948 Thus:...

left and right sides have a different number of elements.

Hi @Luca Re This is simple - since the 'i' is a logical indexing vector and is not all 'true' length(find(i)) % == 5948 Thus:...

2 månader ago | 0

Answered

exportgraphics with 'patch' crashing Matlab 2024a

Hi @DANILO ALARCON When I made 't' smaller (t = 0:0.001:2;) - it ran smoothly, When I enlarge it (t = 0:0.001:10;) and run - ...

exportgraphics with 'patch' crashing Matlab 2024a

Hi @DANILO ALARCON When I made 't' smaller (t = 0:0.001:2;) - it ran smoothly, When I enlarge it (t = 0:0.001:10;) and run - ...

2 månader ago | 0

Answered

How to produce an array that displays the common data values in other arrays?

Hi @Jacey Your question is not clear enogh I have changed a,b &c to hold also other values than 0,1 The result is : "ind" ho...

How to produce an array that displays the common data values in other arrays?

Hi @Jacey Your question is not clear enogh I have changed a,b &c to hold also other values than 0,1 The result is : "ind" ho...

2 månader ago | 0

Answered

counter that will count the input 1. If the input signal goes to 0 then the counter should reset.

Hi I have created a dummy "signal" variable that gets the value True or False. Hope this fits your needs counter = 0; for i ...

counter that will count the input 1. If the input signal goes to 0 then the counter should reset.

Hi I have created a dummy "signal" variable that gets the value True or False. Hope this fits your needs counter = 0; for i ...

2 månader ago | 0

Answered

Book recommendations for improving optimization, control and modeling different processes in MATLAB

Hi Take a look @ the next 2 links. You might find what you are looking for https://www.mathworks.com/academia/books/accelerat...

Book recommendations for improving optimization, control and modeling different processes in MATLAB

Hi Take a look @ the next 2 links. You might find what you are looking for https://www.mathworks.com/academia/books/accelerat...

2 månader ago | 0

Answered

Opening of serial port during GUI formation.

Hi I have enhanced your class: Added serial_port to the properties: properties fig daq UI ...

Opening of serial port during GUI formation.

Hi I have enhanced your class: Added serial_port to the properties: properties fig daq UI ...

2 månader ago | 0

| accepted

Answered

Color change in plots

Hi I have seen your attached fig (better to attach (also) a *.png file as @Image Analyst commented Anyhow - you use "shadedErr...

Color change in plots

Hi I have seen your attached fig (better to attach (also) a *.png file as @Image Analyst commented Anyhow - you use "shadedErr...

2 månader ago | 0

Answered

Overlap a webcam image and a heatmap.

Hi. There is a similar question. Please look @ https://www.mathworks.com/matlabcentral/answers/295620-how-can-i-overlap-two-ima...

Overlap a webcam image and a heatmap.

Hi. There is a similar question. Please look @ https://www.mathworks.com/matlabcentral/answers/295620-how-can-i-overlap-two-ima...

2 månader ago | 1

Answered

Image processing for pattern restoration

Hi Finiding the 4 corners of the rectangle - is very easy (looking for minimum/maximum non zero index on each dimention) Here ...

Image processing for pattern restoration

Hi Finiding the 4 corners of the rectangle - is very easy (looking for minimum/maximum non zero index on each dimention) Here ...

2 månader ago | 1

| accepted

Question

retrieve mat-file version for v7.0

Hi Referring https://www.mathworks.com/matlabcentral/answers/47013-retrieve-mat-file-version?s_tid=sug_su We can tell the mat-...

3 månader ago | 1 answer | 0

Answered

error when using {}

Hi What you are doing is wrong: You have a variable called "Periodandfrequencies" which is a "table" (defined on line #335 @ y...

error when using {}

Hi What you are doing is wrong: You have a variable called "Periodandfrequencies" which is a "table" (defined on line #335 @ y...

3 månader ago | 0

Answered

Given the coordinates (x, y) of a center of a circle and it's radius, write a program which will determine whether a point lies inside the circle, on the circle or outside

distance = sqrt((xc-xp)^2 + (yc-yp)^2);

Given the coordinates (x, y) of a center of a circle and it's radius, write a program which will determine whether a point lies inside the circle, on the circle or outside

distance = sqrt((xc-xp)^2 + (yc-yp)^2);

3 månader ago | 0

Submitted

save2

= exactly as builtin function "save", but variables can be sent to function directly (not as char)

3 månader ago | 1 download |

Answered

keyboard short cut key for my customized script

Hi The next link might be what you are looking for: https://www.mathworks.com/help/matlab/matlab_prog/create-shortcuts-to-frequ...

keyboard short cut key for my customized script

Hi The next link might be what you are looking for: https://www.mathworks.com/help/matlab/matlab_prog/create-shortcuts-to-frequ...

3 månader ago | 0

Answered

Finding small vector in big vector

Hi A small improvement where the sub-vector is found more than once... x = x(:)'; % Make sure data is a Row vector ix = strfi...

Finding small vector in big vector

Hi A small improvement where the sub-vector is found more than once... x = x(:)'; % Make sure data is a Row vector ix = strfi...

3 månader ago | 0

Answered

there is error in plotting, how to resolve it?

Hi I see no problem for Matlab to plot "undefined" value 1st of al 0^0 in Matlab is 1 (try for yourself...) Undfined value ca...

there is error in plotting, how to resolve it?

Hi I see no problem for Matlab to plot "undefined" value 1st of al 0^0 in Matlab is 1 (try for yourself...) Undfined value ca...

3 månader ago | 0

Solved

Test if a Number is a Palindrome without using any String Operations

*Description* Given an integer _X_, determine if it is a palindrome number. That is, _X_ is equal to the _X_ with the digits ...

5 månader ago

Solved

Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)

Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

5 månader ago

Solved

Plot Damped Sinusoid

Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

5 månader ago

Solved

Rescale Scores

Each column (except last) of matrix X contains students' scores in a course assignment or a test. The last column has a weighted...

5 månader ago

Solved

Calculate Inner Product

Given two input matrices, |x| and |y|, check if their inner dimensions match. * If they match, create an output variable |z|...

5 månader ago

Solved

Find the Best Hotels

Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...

5 månader ago

Solved

Crop an Image

A grayscale image is represented as a matrix in MATLAB. Each matrix element represents a pixel in the image. An element value re...

5 månader ago

Solved

Calculate BMI

Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...

5 månader ago

Solved

Verify Law of Large Numbers

If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

5 månader ago

Solved

Find the Oldest Person in a Room

Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

5 månader ago