Answered
How to record all the values from my previous loop?
% Input Diameter = 9100; % mm Radius = Diameter/2; % mm Cover = 75; % mm Bar_Diameter = ...

2 years ago | 0

| accepted

Answered
what type of image as entry to do jpeg code
You can choose any lossless compression images and apply the proposed compression algo and compare. If you want to know the diff...

2 years ago | 1

| accepted

Answered
Finding position of values which are equal to some value
ND=randi(100,[1,1800]); % Random data just for testing val=randi(100,[1,16]); % Random data just for testing [common_val,idx]=...

2 years ago | 0

| accepted

Answered
Create space between binEdges Historgram
Try data=randi([1,10],[100,100]); hist_counts = histcounts(data); %............^ change the value as per required result bar...

2 years ago | 1

Answered
How to read '.webp' image file
This option! Save in the web & you can try using complete web path Reference : Link https://in.mathworks.com/matlabcentral/a...

2 years ago | 0

| accepted

Answered
Why doesn't it work ?
s = 1.25; t1 = 0:0.01:pi/2; t2 = pi/2:0.01:pi; t = [t1 t2]; x1=4*sin(2*t1).*sin(2*t1).*exp(-(t1/s))+2; x2=4*sin(2*t2).*sin(...

2 years ago | 0

Answered
error on piecewise 'First argument must be a condition.'
As per the syntax definition of the piecewise funtion piecewise(condition, value, condition, value....) In the above code SN...

2 years ago | 0

| accepted

Answered
Finding a certain random value in which row and how many times has been appeared
This is a Matlab forum, Matlab answer, try to replicate in other langauges- rand_data=randi([0 20],[1, 20]) num=input('Enter a...

2 years ago | 0

Answered
Solving trigonometric equation.
You are suggested to go through MATLAB Onramp- https://www.mathworks.com/learn/tutorials/matlab-onramp.html Seems like homewor...

2 years ago | 0

| accepted

Answered
Cropping an image with coordinate values
[rows,colm]=find(image==1); Get the indices as rows & colm

2 years ago | 1

Answered
How can I merge the matrices that produce different dimensions in the loop
#Example data_store=cell(5,1) for i=1:5 data=rand(i,3) data_store{i}=data; end dat=cell2mat(data_store)

2 years ago | 0

Answered
Taking one figure out of a thousand figures
You can do that in multiple ways, easiest way Save the all data points in cell array { } Once the plots done and exited from f...

2 years ago | 0

| accepted

Answered
hold on producing separate graphs
Remove all "figure" statements, also one hold on is sufficient. Same Figures: x = I y1 = 4*I.^20 hold on plot(x,y1) x = ...

2 years ago | 0

Answered
How to iterate over multiple vectors or using a function to draw multiple vectors without using the same piece of code again and again?
% FEC = 3.8x10^-3 % % For Phi/Psi = +/-10 CoverageArea_mean_10 = {[84.4735,21.1779,6.4247,2.1416],[45.2112,8.8043,1.1898,0]}; ...

2 years ago | 0

| accepted

Answered
Any one give me the solution of this question or guide me how to solve this problem.
Is this: Manually as asked for data=randi(255,[3,3]); pad_data=zeros(5,5); pad_data(2:end-1,2:end-1)=data Using function pad...

2 years ago | 0

Answered
How to identify sensor patterns?
"The Problem is when i run this code, the count does not increment when the object passes the two sensors" If this is the case,...

2 years ago | 0

Answered
how to resize the image
"I would like to increase the size of the image. How can I do that?" imresize https://in.mathworks.com/help/matlab/ref/imresiz...

2 years ago | 0

Answered
I would like to create a subfolder without numbering
Just remove %d new_folder = fullfile(folder_DATA, sprintf('%s', name_SF)); If you're generating a single folder, that's fine,...

2 years ago | 0

| accepted

Answered
Getting following error while making Contourf plot [ Error using contourf Z must be at least a 2x2 matrix]
You may be look for other data visulization options, as its a 3 column data e.g stem3, scatter3 or plot3 In mesh, surface, c...

2 years ago | 0

Answered
Generate a state space matrix of longitudinal dynamics of an aircraft and determine it's transfer function
If you check the Transfer fuction MATLAB docs, its clearly states that the values of the "Numerator" and "Denominator" propertie...

2 years ago | 0

Answered
generate an x-matrix at every iteration by for loop
for idx=1: 2000 H=sqrt(0.5)*(randn+1i*randn)*(1/sqrt(2)); % my H %cdf=... end #If you wish to save all generated ...

2 years ago | 0

Answered
How can I plot this signal?
gm = 0.04; RL = 10000; CL = 10^(-9); f = logspace(-1,2); Av = (-gm*RL)./(1 + RL*CL*f*1i); %magnitude subplot(2,1,1); logl...

2 years ago | 0

Answered
extraction of the bright blob
grayImage=imread('image_test11.png'); bw_Image=imbinarize(grayImage,0.99); % Change threshold as per desired output biggestBlo...

2 years ago | 0

| accepted

Answered
Iterating an equation through a range of values to satisfy a condition
Sufficint Hints: X = 11:increment spacing:15; % Initiate the loop. check the increment spacing Y = 1; V_i = 1; % Random ini...

2 years ago | 0

Answered
How to generate H-matrix at every iterations using for loop i
Hint: using For Loop for i=1:5000 H=sqrt(0.5)*(randn+1i*randn)*(1/sqrt(2)); end If you want to store the H in each it...

2 years ago | 0

| accepted

Answered
histogram from binary image
What does histogram mean: it counts the number of pixels as per pixel values. Binary number has only 0 and 1 pixel, lets have ex...

2 years ago | 0

| accepted

Answered
Determining pixel clarity in different images
Image clarity and quality is a subjective topics. There are several ways you can evaluate the quality metric of an image. Are yo...

2 years ago | 1

Answered
Angle between two 3D vectors
"I need to calculate angles between vector st_direction and each column vector from A matrix, for example:" st_direction =[0.63...

2 years ago | 1

Answered
Plotting a multivariable function
a_ft=28000; v_cal=0:500; CaltoTrue(a_ft,v_cal) function v_true=CaltoTrue(a_ft,v_cal) a=a_ft*0.3048; b=-0.0065; R=287.05287...

2 years ago | 1

| accepted

Answered
Using a nested for loop to create a matrix that square roots positive integers and adds 30 to negative integers.
X=[4,-5,13;19,-13,21;-33,77,144] [r,c]=size(X); Y=zeros(length(X)); for i=1:r for j=1:c if X(i,j)>=0 ...

2 years ago | 0

Load more