Answered
How would i write this str?
I always use fprintf MyAge = 6; FreindName = 'Joe'; FreindAge = 4; fprintf("My friend %s's age is %d years.\n", FreindName, ...

3 years ago | 1

Answered
What does this error mean?
If idx is a single number, then acc(idx) needs to be a single number. Evidently something in your expression is an array. Try ...

3 years ago | 0

Answered
Update string with new line in edit Field (text) in mlapp
Yeah, kind of weird. But I found that if you make it a Text instead of an Edit box, it will work and show up on multiple lines:...

3 years ago | 0

Answered
Create 2D mask from nonzero values in 3D array
I recommend processing the volumetric image one slice at a time. Try this: s = load('3Darray.mat') FAtp2_DA = s.FAtp2_DA; % ...

3 years ago | 0

Answered
How to rename a structure array with a string stored in character
Just make copies of the originals if you need to keep them Signal_1_original = Signal_1; Signal_2_original = Signal_2; Signal...

3 years ago | 0

Answered
How to remove sine shaped noises from a signal?
How monotone is your "real" signal? Can you just zero out the FFT outside the known range of your signal? Or, if not, maybe ju...

3 years ago | 0

Answered
How to save files with Canny edge detection and Feature extraction
You need to look over all files in a for loop instead of a while loop in performCannyAndSave allFileNames = imds.Files numFile...

3 years ago | 0

Answered
how I can represent it in MATLAB
See if the attached manual convolution helps you at all. Adapt as needed.

3 years ago | 0

Answered
To create a false color image
See the attached article on a variety of ways to convert hyperspectral channels (wavelength bands) into RGB images.

3 years ago | 0

Answered
Connecting/Activating license without license number/activation key
We don't usually handle installation questions here. See the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installation,_the_i...

3 years ago | 0

Answered
Counting and measuring size of particles flowing in a video
The Computer Vision Toolbox has motion tracking capabilities. https://www.mathworks.com/help/vision/tracking-and-motion-estimat...

3 years ago | 0

Answered
Last Saved .PNG uploaded on all PPT slides
What does this line do: dataSlides = add(ppt,'Title and Content'); What is ppt? I'd use ActiveX if you're using Windows. Why...

3 years ago | 0

Answered
My function to read data from three csv files is only reading one file and storing it in 'ans' instead of the variable K.
How did you run it? You didn't just push the green run triangle did you? Did you do something like this: [K, K_sub, Q] = inpu...

3 years ago | 0

| accepted

Answered
automatic threshold based segmentation
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

3 years ago | 0

Answered
What does this mean: K12_global(1:3:6,1:3:6)?
Another example indexes = 1 : 3 : 6 The next index would be 7 since 4 + 3 = 7, but since it was told to stop at 6, the 7 does ...

3 years ago | 0

Answered
Using max value to normalize data
Use rescale to rescale a matrix from min to max to whatever range you want: signal = rescale(signal, 0, 1);

3 years ago | 0

Answered
Index in position 3 exceeds array bounds
Evidently sim_data.cart_pos does not have 3 dimensions. What does this show if you put it just before that line that throws the...

3 years ago | 0

Answered
Work to create a app
I made some fixes to it but it still doesn't plot anything. It runs without errors though. See attached.

3 years ago | 0

Answered
where to put the break condition for the while loop
You need to decide when to get out of the loop. This can be either after a certain number of iterations, or when mode is no...

3 years ago | 0

Answered
how to convert color image to gray in app designer in different windows without using imread and rgb2gray?
What can be used if your instructor doesn't want you to use any built-in functions? What can be programmed "without any built-i...

3 years ago | 0

Answered
How can i get table with data of u1,u2,u3,u4?
Instead of your last line where you called table2array, try this: T = table(u1', u2', u3', u4', 'VariableNames', {'u1', 'u2', '...

3 years ago | 1

| accepted

Answered
compute sums by accumulating in a for-loop
Look at this: x=normrnd(0,1,100,1); xprime=detrend(x,'constant'); phi=zeros(14,1); L= [0:13]'; for l=1:14 temp = (sum(...

3 years ago | 0

| accepted

Answered
Image processing and Segmentation
Not sure what cells you are talking about. And do you want cells if they are not fully contained in the image? If you have any...

3 years ago | 0

Answered
help with proper notch filter
I have Fourier filtering demos, attached.

3 years ago | 0

Answered
Linear Interpolation listed data points on to anothe list
You're mixing up x_data, x, z_new, and v. I think the nomenclature is confusing you. Try this: x_data = [0.7127, 0.6954, 0.678...

3 years ago | 0

| accepted

Answered
Regression Learner - Neural Network results not reproducible
When you export the model "trainedModel" to the workspace, you then have to save it in a .mat file so that you can recall it for...

3 years ago | 0

| accepted

Answered
how to convert color image to gray in app designer in different windows without using imread and rgb2gray?
Once you have your pixel values in a 3-D array (rows x columns x 3 colors), you call rgb2gray. Why did you read in the image th...

3 years ago | 0

Answered
How should the output look like of the MSE of a median filtered image?
You should use the built-in functions immse and psnr

3 years ago | 0

Answered
Compute convolution y[n]=x[n]*h[n]: x[n]={2,0,1,-1,3}; h[n]={1,2,0,1}
@Li Hui Chew, yes your approach is correct. Is that all you wanted - confirmation of your approach?

3 years ago | 0

Answered
How do you apply a 3x3 low pass filter on an image that is noisy (salt and pepper) , and what is it supposed to do?
Basically the same as your other question where you used the median filter. So, borrowing from my answer there: If inpict is a...

3 years ago | 0

Load more