Risposto
Simulated height of Faraday waves remains constant
To modify the code to correctly simulate the time-varying nature of Faraday waves, you will need to update the surface height ...

oltre un anno fa | 0

| accettato

Risposto
Merge nx3 double matrices present within a 3x1 cell
a=randi(100,157,2); b=randi(200,189,2); c=randi(300,183,2); mat={a;b;c}; for i=1:size(mat,1) if i==1 aaa(i)={[...

oltre un anno fa | 0

| accettato

Risposto
Bin data into equally spaced intervals
% Import data from Excel sheet data = xlsread('data.xlsx'); % Preallocate array for binned data binned_data = zeros(24,1); ...

oltre un anno fa | 0

| accettato

Risposto
how to download pdf files from website?
system('wget -r -A.pdf https://smallpdf.com/blog/sample-pdf')

oltre un anno fa | 0

Risposto
How to have different threshold for different images?
In general, the threshold used in edge detection algorithms plays a critical role in determining the quality of the detected edg...

oltre un anno fa | 0

| accettato

Risposto
N dimensional multiplication on gpu arrays
It is possible to improve the performance of the code you have provided by using the built-in element-wise multiplication operat...

oltre un anno fa | 2

| accettato

Risposto
Feature importance of a polynomial function
To calculate the importance of each feature in the equation you provided, you can use the coefficients of the equation to determ...

oltre un anno fa | 0

Risposto
How can I generate a pseudo random column vector V
% Define the minimum and maximum values of L L_min = 10; L_max = 100; % Generate a random integer value for L within the de...

oltre un anno fa | 0

| accettato

Risposto
i want to get bex(j), bin(j) as gex(i), gin(i), how to do that and insert another for loop inside that code
Rmin = 1e5 Rmax = 1e6 Gmin = 1.0/Rmax Gmax = 1.0/Rmin X = table2array(in_mn) y=w{1} b= w{2} %nitialize gex and gin to ...

oltre un anno fa | 0

| accettato

Risposto
How do I get the names of all the enumerations in a class?
have you tried this? https://in.mathworks.com/help/matlab/ref/enumeration.html enumeration WeekDays

oltre un anno fa | 1

| accettato

Risposto
Error using dbscan. Expected X to be nonempty
Error You are getting Expected X to be nonempty Because of variable interpts is empty. and it is empty because it is neve...

oltre un anno fa | 1

| accettato

Domanda


Command Window output weird on Mac OS
I am using Matlab 2021b on Mac OS and command window seems to be centre aligned its looking weird any way to fix it properly lik...

oltre un anno fa | 1 risposta | 0

1

risposta

Risposto
How to crop out the edge tick marks on graph image?
Is this what you are looking for @Trong Link , Removing Tickdir? t=0:0.01:1; f=1; x=sin(2*pi*f*t); figure(1); plot(t,x)...

oltre un anno fa | 0

Risposto
Increase time with for loop
You want like this or you want array? x=0; for i=1:16 x=x+0.5 end y={}; x=0; for i=1:16 x=x+0.5; y = [y x]...

quasi 2 anni fa | 0

| accettato

Risposto
error in indexing mode
V= [ 1.0350 0.9710 0.9680] [numRows,numCols] = size(V) N=size(V) Working fine. You have some other query can you elabor...

oltre 2 anni fa | 0

Risposto
How to encrypt the .m source code.
So here are the some links from help https://in.mathworks.com/help/matlab/matlab_prog/protect-your-source-code.html You can l...

oltre 2 anni fa | 0

Risposto
How to Draw between specific points
The three points you want to draw is (6,20),(8,30),(10,40) ? or you want something else? x = [ 6 8 10 ]; y = [ 20 30 40 ]; p...

oltre 2 anni fa | 0

Risposto
Rearrange matrix rows in specific order
Matrix_A = [1 1 1;2 2 2;3 3 3 ; 4 4 4; 5 5 5; 6 6 6; 7 7 7] Inp = [2 3 4 5 1 6 7]; Output = Matrix_A(Inp,:)

oltre 2 anni fa | 0

Risposto
How to find pythagorean triangle's hypotenuse in a matrix?
a = [5 8 12 3; 8 12 63 20; 9 84 144 20; 24 11 15 180]; b = [12 6 5 4; 15 35 16 21; 40 13 17 99; 7 60 112 19]; c=[]; for i =1 ...

oltre 2 anni fa | 0

| accettato

Risposto
Cell concatenation error with cells with values below 1 and above 1
You can use char command @Christina Huynh a = {'0.10297';'0.54312';'0.98275';'1.4219';'1.8605'}; Output = char(a) And it wa...

oltre 2 anni fa | 0

Risposto
Select table data by Date
dates = [datetime('today'); datetime('Yesterday') ;datetime('tomorrow')]; data = [-0.1 ; 0 ;0.1]; T = table(dates,data) FindD...

oltre 2 anni fa | 0

| accettato

Risposto
how to identify and read positive and negative data from excel?
[num data raw] = xlsread('Abb73at100.xlsx'); % get data in two columns col_1 = num(:,1); col_2 = num(:,2); % get negative in...

oltre 2 anni fa | 0

| accettato

Risposto
how to print first business dates between years using loops?
alldates = {}; for year =2010:2020 for month=1:12 alldates{end+1}= datestr(fbusdate(year,month)); end end v...

oltre 2 anni fa | 0

| accettato

Risposto
Extract Data from .txt File
alltext = fileread('Datos_SSB_624_MHz_7_dB.txt'); % extract data between {"peakEvm": and }, allmatches = regexp(alltext,'(?<={...

oltre 2 anni fa | 1

| accettato

Risposto
How do I make numbers shift left using function?
@Amy Joyce Valencia I think this will work for you function Output = MyShiftLeft(y,x) for j=1:x temp=y(1); % shift v...

oltre 2 anni fa | 0

| accettato

Risposto
Why isn't my matrix being filled?
@Coby Juarez Its because you are using old values of I S W but you are not updating them in loop. Please have a look at below ...

oltre 2 anni fa | 0

Risposto
Matlab script "sample time period" error when calling Simulink model
Because 'test_lau/INES0' this block sample time (0.01) is lower than model sample time. It sould be multiple of the fixed step ...

oltre 2 anni fa | 1

| accettato

Risposto
comparing datetime objects between two tables.
date1 = datetime('today'); date2 = datetime('yesterday'); date3 = datetime('tomorrow'); date4 = datetime('tomorrow'); date...

oltre 2 anni fa | 0

Risposto
How do I add values to specific values/ specific place of an already existing array?
@Goncalo Costa will this work for you? t = [1.5, 2.5 ,3.5, 4.5, 5.5 ,6.5, 7.5, 8.5, 9.5, 10.5] A = [3.5, 5.5, 7.5] x = 2 req...

oltre 2 anni fa | 0

Risposto
Simulink SimulationOutput aaccess via Code
load_system('sampleModel'); [T] = sim('sampleModel'); T T.simout1 T.simout1.Data

oltre 2 anni fa | 0

Carica altro