photo

Arif Hoq


Last seen: 10 mois il y a Actif depuis 2021

Followers: 0   Following: 0

Message

Programming Languages:
MATLAB
Spoken Languages:
English

Statistiques

All
  • Knowledgeable Level 5
  • Thankful Level 5
  • Pro
  • 3 Month Streak
  • Knowledgeable Level 3
  • Community Group Solver
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
How can I write this in my figure title?
plot(1:10) % t = '$\frac{H}{|H_m{_a}{_x}|}$'; [t,s]=title('$\frac{H}{|H_m{_a}{_x}|}$','interpreter','latex'); t.FontSize = 18...

presque 2 ans il y a | 2

| A accepté

Réponse apportée
How to create a random array from an array
try this: A=randi(500,1,450); B=A(randperm(numel(A),300));% choose 300 elements randomly

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Making a decimal output using three binary inputs
do it as a function a=0; b=1; c=1; out=make_decision(a,b,c) function output=make_decision(A,B,C) if A==0 && B==0 && C==1...

presque 2 ans il y a | 0

Réponse apportée
How to calculate the average value of selected row, column from a given matrix.
A =[ 16 2 3 13 16 ; 5 11 10 8 8 ; 9 7 6 12 5; 4 14 15 1 3] i=1:3; j=1:2; out_each...

presque 2 ans il y a | 1

Réponse apportée
How do I convert a CSV into a .mat file?
use Readtable function or readmatrix if your data includes numeric loadyourfile=readtable("s1.csv"); save('yourmatfile.mat','l...

presque 2 ans il y a | 1

Réponse apportée
hello, can you help me develop a nxn matrix using Doolittle method displaying L,U,X while asking for matrix size, coefficient and the constant Thank you, I can't start it.
you defined your A matrix with at least 3 columns. So you need to specify your A matrix elements >= 3. then generate your matrix...

presque 2 ans il y a | 0

Réponse apportée
How to calculate the mean of each row, excluding the first column?
M=[0 3 4 0 6 5 0 9 2 0 3 1 0 8 9 0 4 6]; A=mean(M(:,2:end),2)

presque 2 ans il y a | 0

| A accepté

Réponse apportée
"Array indices must be positive integers or logical values".Error in (line 17) tij_lm(l, m) = min([i(l + 1) - i(l), i(l) - i(l - 1), j(m + 1) - j(m), j(m) - j(m - 1)]) / 2;
if you start your index from 2 then, this can be one approach: % Example data for time series i and j i = [1, 2, 3, 4, 5]; j ...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How to plot this function in matlab.
b=4; % specify your variable b t=linspace(0,20,10); % time y=-b.*t-3/2*b.^2; plot(t,y)

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Variable X must be of size [12 4]. It is currently of size [12 5]. Check where the variable is assigned a value.
check in line 4 m = 1:12; m = m'; Y = [2.8 3.5 4.7 6.3 6.6 7 6.4 5.8 5.3 4.2 3.4 2.6]'; X = [ones(size(m)), m,m.^2, m.^3, m...

presque 2 ans il y a | 0

Réponse apportée
Multiply Each Cell Value in Double by 1000
your_variable=randi(400,10801,1); out=your_variable*1000; writematrix(out,'mytextfile.txt')

presque 2 ans il y a | 0

Réponse apportée
Take two matrices in a folder, take the difference, and save the new matrix to a new folder.
S01_p1=10:2:20; S01_p2=1:6; out=S01_p2-S01_p1; % out is your output % C:\Users\Documents\New folder is your folder directory ...

presque 2 ans il y a | 0

Réponse apportée
Fill light gray color between two horizontal lines in a plot?
x=[1:10]; y=[1:10]; figure(1);clf; plot(x,y,'b') hold on plot([1,10],2*[1,1],'--.k') hold on plot([1,10],4*[1,1],'--.k') ...

presque 2 ans il y a | 0

Réponse apportée
How do I replace one value of a matrix with another value from a different matrix?
I don't find any issue.please attach your data and code. A=[3 6 8 9;1 2 5 6] B=[11 22 33 44;55 66 77 88]; A(1,1)=B(2,2)

presque 2 ans il y a | 0

Réponse apportée
How can I make my 'x' matrix in scatterplot in 2 different colors??
temp=[-37; -19; -24; -14]; bin1=[0.0416;0.046667;0.044463;0.024943]; bin2=[0.107853;0.120159;0.114775;0.063871]; bin3=[0.0713...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
how to pick 25th % and 75th% number of data from 200x200 matrix
a=randi(100,200,200); % your data matrix(200 x 200) data25=a(25,:)/100; % percentage data75=a(75,:)/100; % percentage new_ar...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
select few values from a vector randomly
try this: v1 = [3 4 7 14 15 18 23 25 28 31 34 36 37 38 39 40 42 44 46]; v2 = [1 2 5 6 8 9 10 11 12 13 16 17 19 20 21 22 2...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
How can I get the linear indices of the 4 maximum values of an array?
A = [1 2 3 10 8 9 7 4 5 6]; [B,Idx]=maxk(A,4)

presque 2 ans il y a | 2

| A accepté

Réponse apportée
use parentheses. Otherwise, check for mismatched delimiters.
use the parentheses at the end of syntax. k=(str2num(N1)/str2num(N2)*str2num(s1)/str2num(s2)*str2num(slope1)/str2num(slope2)^(...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
Why do I get "Array indices must be positive integers or logical values" error?
try this: lc= 0.03; b=0.013; Rc= 0.0275; theta1= 0:15:360; theta2=theta1*pi/180; x=lc/2; y=((Rc^2)*(theta2)); z=((b^2)*0...

presque 2 ans il y a | 0

Réponse apportée
How do I remove a value from a column, but keep the rest?
Try this. If there is any issue, please upload your data. Add and Delete Table Rows load patients T = table(LastName,Gender,A...

presque 2 ans il y a | 0

Réponse apportée
Picking array elements based their values (largest, second largest,...)
Y=[1 1 0 0 6 5 4 7 7]; a=unique(Y); [ii,ij] = sort(a,'descend'); Largest=ii(1) second_largest=ii(1+1) third_largest=ii(1+2)...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How to rearrange matrix columns?
A=[0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How i creat Costomer fscanf?
use readtable function a=readtable("sol2.txt");

presque 2 ans il y a | 1

Réponse apportée
How to prepare extract monthly Data from a group of data?
a=table2array(readtable("AO_1950_2022.xlsx")); b=a(:,2)==2; febmonth=a(b,[1 3]);

presque 2 ans il y a | 0

Réponse apportée
Not enough input arguments (line 2)
x=12:10:42; out=nonsense(x); function y=nonsense(x) if mod(x,2) == 0 y=x.^2; else y=0; end disp(y) end

presque 2 ans il y a | 1

Réponse apportée
How to have function window show over command window?
Click the little 'downward pointing triangle' on the right top of title bar. Then select the "dock" option. https://www.mat...

presque 2 ans il y a | 0

A résolu


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

presque 2 ans il y a

Réponse apportée
How to import a dataset in .mat file for data pre-processing?
a=load('your mat file.mat');

presque 2 ans il y a | 0

| A accepté

Réponse apportée
read data from csv
use readtable function a=readtable("0.csv","ReadVariableNames",false);

presque 2 ans il y a | 0

Charger plus