**Statistics**

RANK**40**

of 277 723

REPUTATION**4 717**

CONTRIBUTIONS

**15** Questions

**2 076** Answers

ANSWER ACCEPTANCE **
80.0%
**

VOTES RECEIVED**541**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

I want to find second and third maxima in a row of a matrix of size 1000*8

Since the matrix is not 1-D, I think it can be the maximum sum value of row elements. Here mat is 1000x8, is this? Try with sm...

ungefär 3 timmar ago | 0

How to get numerical output

You can use vpa https://in.mathworks.com/help/symbolic/vpa.html

ungefär 5 timmar ago | 0

Hi everyone. How can I fix this issue?>>>Array indices must be positive integers or logical values.

Error Here >> t - N + 1 ans = -1 hence in MTALAB Y1(-1) is not valid statement, all indices must be real & positive number ...

ungefär 7 timmar ago | 0

Why doesn't it work? - Different size between Left side and Right side

phi(:, j)' * F(t(i)) / ((omega(j)^2) - (2*zeta(j)*omega(j)*1i) - (omega(j)^2)); The result of the above statement is vector, no...

ungefär 8 timmar ago | 0

Kmeans clustering to detect pothole

Please change the k number of segments, which works best in your case. I= imread('image_pathhole.jpeg'); k=3; [L,Centers] = i...

20 dagar ago | 0

| accepted

How can I import an excel data and export results to another excel file?

Import Excel Files: https://in.mathworks.com/help/matlab/import_export/ways-to-import-spreadsheets.html %Do the coding work a...

21 dagar ago | 1

| accepted

How to print the given data in three different text files such that after each iteration the values are appended?

Same way, as I have answered in your another question https://in.mathworks.com/help/matlab/ref/diary.html diary data_file_nam...

22 dagar ago | 0

| accepted

How to write data of a variable generated in a loop in a text file such that it is written after every row or appended?

diary my_data loop %diaplay the data in command window diary off Please see details diary function https://in.mathworks.co...

22 dagar ago | 0

Help a total noob run matlab script

Welcome to the MATLAB World, MATLAB is a programming platform designed specifically for engineers and scientists to analyze and ...

22 dagar ago | 0

how can ı solve the part c

Hints: height= %initialize while deflection<=5 height=height+.. %update with increment, all in mm dlection= ...

22 dagar ago | 0

Why does imshow display different image when I try to show a CT image?

Can you try this way- [img,map] = imread('Slice_87.png'); imshow(img,map);

22 dagar ago | 1

I want to plot this code, but my value show zero and the graph nothing to show. How to fix it

M1 must be vector, however in the code plot M1(j+1) is a scalar (Single value) plot (dt,M1,'r','Linewidth',3); To get the desi...

22 dagar ago | 0

| accepted

How i can i Ensure that my 2 vectors have the same size?!

Hope I have understand the question- Here is the example DAPEAK_IN=randi([1,100],[1,randi(200)]); %Random data size(DAPEAK_I...

ungefär en månad ago | 0

How to convert cell of array containing cell of array (n×n) order into a Single cell of arrays (n×n) order??

cell_1={3,4,5;7,8,9} cell_2={13,14,15;17,18,19} new_cell=[cell_1,cell_2] new_cell=[cell_1;cell_2]

ungefär en månad ago | 0

Using two functions in a loop

iter=1; for i=1:iter try fun1(3,8) catch fun2(4,6) end end function z=fun1(a,b) z=a.b ...

ungefär 2 månader ago | 0

| accepted

Define an empty matrix Z. Using FOR statement for i = 1, . . . , 10, print out i and store i in the matrix Z at each iteration

Hint: Complte it. Learn MATLAB Basics MATLAB Onramp https://matlabacademy.mathworks.com/details/matlab-onramp/gettingstarted Z...

ungefär 2 månader ago | 0

Array math: The logical indices contain a true value outside of the array bounds.

The y value can be store in a cell array and use the cellfun to get the result. Here is an example- #Without Loop x=[10 12 13...

ungefär 2 månader ago | 1

Undefined function or variable 'otfsmod' in MATLAB 2018a !!!!!

otfsmod This might be not inbuilt MATLAB funtion. It suppose to be external custom function. Please confirm the source of the f...

ungefär 2 månader ago | 0

How to record all the values from my previous loop?

% Input Diameter = 9100; % mm Radius = Diameter/2; % mm Cover = 75; % mm Bar_Diameter = ...

ungefär 2 månader ago | 0

| accepted

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...

ungefär 2 månader ago | 1

| accepted

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]=...

ungefär 2 månader ago | 0

| accepted

Create space between binEdges Historgram

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

4 månader ago | 1

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...

5 månader ago | 0

| accepted

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(...

5 månader ago | 0

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...

5 månader ago | 0

| accepted

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...

5 månader ago | 0

Solving trigonometric equation.

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

5 månader ago | 0

| accepted

Cropping an image with coordinate values

[rows,colm]=find(image==1); Get the indices as rows & colm

5 månader ago | 1

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)

6 månader ago | 0

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...

6 månader ago | 0

| accepted