Answered
I don't know how to add the dots
x = [0 : 0.1 : 12] * pi; y = sin(x); z = cos(3 * x); figure(); plot3(x,y,z, '--d','color','b','markerfacecolor','y','markers...

5 months ago | 0

| accepted

Answered
Fusion of colour PET /MRI image of brain
Important Note: Color is just an perception (Human Eye), color may vary person to person (minor changes in color contrast) There...

5 months ago | 0

Answered
How to merge matrix in a loop?
% Just example A=rand(4,3); B=rand(4,3); C=rand(4,3); D=rand(4,3); data_mat={A,B,C,D}; % Created to handle data easily N=4...

5 months ago | 0

Answered
Magic square (( please help))
result=2*magic(3) You have to look for any such possibility for odds too.For any random function or fixed values too, checking...

5 months ago | 0

Answered
How to save the values of variables during each iteration(for loop) in a single variable?
If output is numeric use Array output=zero(1,total iteration); % Pre-allocate the variable for iter i=1:... output(i)=....Cal...

5 months ago | 1

| accepted

Answered
Can anyone check my code please?
Sufficints Hint: You can also do this in efficient way, I have shown work till D1 and D2, try the rest part yourself A1=randi(...

5 months ago | 0

Answered
How can I extract the numbers divisible by 3 from the diagonal of a nxn matrix composed of random integers?
n=input('Choose the number of lines and columns of the square matrix: ') A=randi([100,1000], n, n) D=diag(A) mat=D(mod(D,3)==...

5 months ago | 1

| accepted

Answered
How do you write a function that imports data from an .xlsx file and saves the data as a .mat?
Load the data using readmatrix function https://in.mathworks.com/help/matlab/ref/readmatrix.html data_excel=readmatrix('file_...

5 months ago | 0

| accepted

Answered
change the color of the pixels that are present in an image
It can be done in multiple ways, use morphological operations or see the regionprops function (very useful). Easyest way for spe...

5 months ago | 0

Answered
Exacting a constant range/window of values from a matrix (skipping one cell each time).
data=rand(1000,1); data(25:25:1000)=[]; temp=length(data)/24; cell_data=mat2cell(data,24*ones(1,temp))

5 months ago | 0

| accepted

Answered
Crop frames in video and apply it on other frames.
As per question you have already done video to frame splits let's consider im1 and im2 have same size images, rxcx3 unit 8 type....

5 months ago | 0

| accepted

Answered
How do I plot this series?
Change the upper bound value to any finite number f = symsum(an.*cos(100*n*pi*t) + bn.*sin(100*n*pi*t),n,1,100); %..............

5 months ago | 0

| accepted

Answered
How to set to zero specific elements of a 3D array?
Here if the voxel element is equal to 4, 5 & 50..so on. , all such voxels element will be replaced by 0 (Zero) data= % #3D Arra...

5 months ago | 0

Answered
How can i get the points within a space defined by vectors (0,0,0), (2,4,1),(0,0,2),(-2,4,-1)?
po=[randi([-2,2]),randi([0,4]),randi([-1,2])]

5 months ago | 0

Answered
How to calculate peak value and duration of signal in Image
There are many threds sillimar quaestions, calculate the FWHM and time duration of the signal, please refer https://in.mathwor...

5 months ago | 0

Answered
How to store a color and location in a matrix?
#Easy way (Not Efficient too) test_image=imread('image_file_name.jpeg'); %Change the image file name with format [rows,clom,ch...

5 months ago | 0

Answered
Finding unique closest point corresponding to latitude and longitude vectors for a given point with shortest distance.
#It can verify from plot too, pls modify as per requirments- PQ=[39.2591200000000 -85.9394200000000 39.2591300000000 ...

5 months ago | 0

| accepted

Answered
using kalman filter in medical images
Please refer the following link to study about Kalman Filter (MATLAB) https://in.mathworks.com/help/vision/ug/using-kalman-filt...

5 months ago | 0

Answered
How to convert structure to gray image
Read the individual cell array data element, apply image function % cell_element=.... % image(cell_element) % axis off; You ...

5 months ago | 0

Answered
Merge two arrays w/o for-loop. Speed-up
B1 = [52, 52, 52, 52] B2 = [0.437288188, 0.437288188, 0.437288188, 0.437288188] C=B1+B2

5 months ago | 0

| accepted

Answered
Using while loop in a video
vid=VideoReader('video.mp4'); frame_num=vid.NumFrames; frame_format='.jpg'; vid=read(vid); for i=1:frame_num %Initial Level:...

5 months ago | 0

| accepted

Answered
Write code to print ten columns of every number between 1 to 10
Read at MATLAB Docs randi function %Hint: data=randi([1,10],[1,10]) %random array-10 columns between 1 to 10 result=repelem(...

5 months ago | 0

Answered
How to generate an array based on the values of another array?
A=[1 3;3 1;2 4;4 3] B=A; A(B==2)=4; A(B==1)=3; A(B==3)=2; A(B==4)=1; A

5 months ago | 0

| accepted

Answered
How to save multiple vector signals in one variable using wavelet Denoising?
F data can be store in cell array. F=cell(1,60); for i = 1:60; x = y(i,:) ; F{i}= wden(x,'rigrsure','s','mln',5,'d...

6 months ago | 0

| accepted

Answered
How to smooth and normalize noisy data
Please check the smoothdata Matlab function https://in.mathworks.com/help/matlab/ref/smoothdata.html it can smooth the data i...

6 months ago | 0

Answered
What is the correct way to calculate the average dice score for multiple data in binary image segmentation?
Here>explanation with references https://stats.stackexchange.com/questions/550646/proper-way-to-calculate-mean-dice-coefficient...

7 months ago | 0

Answered
Decode the cryptogram was encoded from 2x2 matrix
"but it keeps saying invalid in the inverse command and I can't figure why" >> X =[5 2; 25 11; -2 -7; -15 -15; 32 14; -8 -13; 3...

7 months ago | 0

| accepted

Answered
How to change maximum Index value in MATLAB
I re-read the question again- I want to find the maximum pixel (index) for example in above 55 is the maximum pixel (index) th...

7 months ago | 0

Answered
Matlab Extracting X and Y coordinates
Concept wise: cross_index=find(data1==data2); This may not work, if there may floating numbers, in that case you may follow th...

7 months ago | 0

Answered
About interpolation pressure & temperature
The are multiple ways to sort the structure fields data points- Procedure 1: b=load('Tempe.mat'); temp_data=sort(vertcat(b.T...

8 months ago | 0

Load more