Community Profile

# Arif Hoq

Last seen: 1 giorno fa Attivo dal 2021

Programming Languages:
MATLAB
Spoken Languages:
English

All

#### Content Feed

Visto da

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

1 giorno fa | 0

| accettato

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

2 giorni fa | 0

| accettato

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

3 giorni fa | 1

| accettato

Risposto
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)

4 giorni fa | 2

| accettato

Risposto
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)^(...

5 giorni fa | 1

| accettato

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

5 giorni fa | 0

Risposto
How do I remove a value from a column, but keep the rest?

7 giorni fa | 0

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

9 giorni fa | 0

| accettato

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

10 giorni fa | 0

| accettato

Risposto
How i creat Costomer fscanf?

11 giorni fa | 1

Risposto
How to prepare extract monthly Data from a group of data?

11 giorni fa | 0

Risposto
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

11 giorni fa | 1

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

11 giorni fa | 0

Risolto

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

12 giorni fa

Risposto
How to import a dataset in .mat file for data pre-processing?

15 giorni fa | 0

| accettato

Risposto

23 giorni fa | 0

Risposto
Insert NaN into specific values
try this: s=load('spi_dca.mat'); spi_dca = s.spi_dca; col4=spi_dca(:,4); col4(col4==0)=NaN; output=[spi_dca(:,[1 2 3]),col4...

28 giorni fa | 0

| accettato

Risposto
My function won't accept the vector
You can not specify 0 as an index x = 0:1:10; f = x.^2-x-1

28 giorni fa | 1

| accettato

Risposto
stacked figure from text file
A=horzcat((1:10)',randi(20,10,1),randi(100,10,1)); figure(4); plot (A(:,1),A(:,2),'-o', 'LineWidth',1, 'Color', [0 0.4470 0.74...

circa un mese fa | 0

| accettato

Risposto
Finding index in a set
one approach: x1 = [0 , 0, 1, 0]; x2 = [0, 0, 0, 0]; % [value I]=find(x1==1); b=perms(x1); [row,col,v] = find(b(:,3)); b(r...

circa 2 mesi fa | 0

Risposto
How to get back real value after rounding
a=[3.3 0.5]; round_vector=round(a) c=a-round_vector; origin_vector=round_vector+c

circa 2 mesi fa | 0

Risposto
Having this problem second time can anyone help?
a=1.1; b=0.09; % x(1)=1.16; % x(2)=1.32; % x(3)=1.47; % x(4)=1.65; % x(5)=1.93; x=[1.16;1.32;1.47;1.65;1.93]; % y=(l...

circa 2 mesi fa | 0

Risposto
Removing Variables From a Cell Array
x = {2 4 3+5*1i NaN 6 9.8 'Hello' 11 -3 -4+6*1i}; x(cellfun(@(x) any(isnan(x)),x)) = [] y = {NaN NaN -7 8 0 4.5 1i 15 'how are...

circa 2 mesi fa | 0

Risposto
Assembling Global Stiffness Matrix
% creating stiff matrix for i=1:20 stiff{i}=randi(100,4,4); end k1=stiff(1); k2=stiff(2); k3=stiff(3); k4=stiff(4);...

circa 2 mesi fa | 0

Risposto
How do I average columns in cell array if some cells are empty?

circa 2 mesi fa | 0

Risposto
How do I convert a cell array with multiple values per cell into a numerical array with multiple rows?
The dimension of the 4th Column of your cell array is 4x1, but the rest of your cell array is 5x1. a=load("split_newdata_mean.m...

circa 2 mesi fa | 0

| accettato

Risposto
Insert numeric values (rx1 matrix) inside a cell
a=randi(100,157,2); b=randi(200,189,2); c=randi(300,183,2); mat={a;b;c} % making a cell array % rep = repmat(100,157,1); m...

circa 2 mesi fa | 0

| accettato

Risposto
How to locate the index of a certain date for a date-time array?
I don't have your data. try this one: % creating datetime data from 1st January 2017 to 31 December 2017 firstdate = '01-01-20...

circa 2 mesi fa | 0

Risposto
How to import odd and even rows from a more than one txt file ?
try this: textfiles = dir('*.txt'); numfiles = length(textfiles); mydata = cell(1, numfiles); for k = 1:numfiles mydata...

circa 2 mesi fa | 0

Risposto
How to remove empty space after legend?
you can change your lengend location to "northwest" or "Southeast" legend(LegendInfo, 'Location', 'northwest', 'fontname', 'Tim...

circa 2 mesi fa | 0