How do i count numbers ending in 3
This: x =[234 352 298 213 365 321 293 213] ; xs = strsplit(num2str(x), ' ') ; total = nnz(endsWith(xs, '3'))

6 months ago | 0

Problem in making multiple scatterplots/subplots?
Hi! If my understanding is correct, there is a function called plotmatrix that comes with MATLAB and that I believe is more sui...

6 months ago | 0

How to plot transfer function with cos or sin
Hi You have those cosine components which means that your system is non linear,and transfer function is only for linear systems...

6 months ago | 0

Discrete to continuous in Simulink.
Hi! Use d2c and/or c2d functions in a MATLAB function ! Check out the link below, some others methods to do this conversion ar...

6 months ago | 0

Error , find entropy of 3d volumetric image on GLCM features ?
Hi! b1 is not truecolor image that is a m-by-n-by-3 numeric array. b1 in your case is a m by n by l by 1 (4 D array). use resh...

6 months ago | 0

Is it possible to restrict the access to a custom function to do not allow other user to apply modification?
Hi! Maybe you convert it to a protected code using pcode. See how in the link below: https://www.mathworks.com/help/releases/...

6 months ago | 1

| accepted

Unable to find helperExtractLabeledData
Hi! @Walter Roberson explained why you don't have the helper function mentioned in your question. Here I am sharing a repositor...

6 months ago | 2

Making amount of two matrix same by smoothing one of them
Hi! TRy this : A = randi(10, 3000, 1) ; n = 5; % average length - 3000/600 newA = mean(reshape(A, n, [])) Hope this help...

6 months ago | 1

How to change column size in table (.txt format) to make it look neater table?
Hi! Give a try using readtable, MATLAB will organize the variables (columns) for you. If the table is not what you expected, yo...

6 months ago | 0

| accepted

Creating matrix and then using it in another code.
Hi! Not sure if I understood your question correctly, but here is a potential answer: % Creating dummy data. in your case use...

6 months ago | 1

| accepted

cannot use element wise operator in frequency response?
Fs=8e3; % sampling frequency Fc=170; % cutoff frequency alpha=1-2*pi*Fc/Fs; nb=round(log2(1/(1-alpha))); % number of shift to...

6 months ago | 0

| accepted

Constant block doesn't accept array
Hi! I understood that you want the output of the constant block to have the same size as the array in it. Use the constant bl...

6 months ago | 0

How can I export models to Web View files programmatically?
Use slwebview to export your model to web view. Check out this link to learn more.

6 months ago | 0

| accepted

how to insert same scalar as length of something?
Is this what you are trying to do? A = [1,2,3,4,5] ; myScalar = 2 ; % change this to the scalar value you want B = myScala...

6 months ago | 0

How to fix the precession difference error of variables in matlab?
You are replying on what your eyes see, use max function. clear close all load(websave("T1", "https://www.mathworks.com/matl...

6 months ago | 0

I am receiving this error : Subscripting a table using linear indexing (one subscript) or multidimensional indexing (three or more subscripts) is not supported.
Hi! We don't import data from excel that way. In your case better to use readmatrix: A = readmatrix(yourFile.xlsx) ; If yo...

6 months ago | 1

Adding a new column to a matrix under certain constraints.
Hi! This a way to do this logic you described in the question, maybe there better ways ! clear % Dummy data wp = [[ones(7,...

6 months ago | 1

| accepted

How to convert hourly observations to monthly mean ?
Hi! You can use retime function, but before make sure you have a timetable. % Convert to timetable if you have standard table ...

6 months ago | 0

RF CW signal generator in MATLAB/Simulink
Hi! Spectrum analyzer block inherits sample rate from the sineWave block, as it is shown on the sinewave wave block the sample ...

6 months ago | 0

| accepted

I HAVE A KEY WHICH IS 1*16 MATRIX. HOW CAN I DETERMINE IT'S BIT SIZE?
Hi! Try this: KEY = [0 0 1 0 3 12 8 7 7 8 12 3 0 1 0 0] ; KEY = single(KEY) ; % WHOS returns a structure ...

6 months ago | 0

Planning a 5G Fixed Wireless Access Link over Terrain - Not run
Hi! reflectorDipoleElement is a function in your live script. Scroll down to the bottom of the script and see if it is there,...

6 months ago | 0

How to plot surface data on world map
Hi! Adapt this example to your case. [N,R] = egm96geoid; load coastlines worldmap("world") geoshow(N,R,'DisplayType','sur...

6 months ago | 1

How to find the frequencies of a time series which contain datetime ?
Hi! You can use pspectrum function. It returns both power and frequency arrays. % Your data a = { '17-Jun-2021 12:00:00...

6 months ago | 1

| accepted

How to split a column with a numeric data into multiple columns by digits in timetable?
Hi! Below will not work for negative elements ... Time = datetime(["20220804T000001"; "20220804T000002"],'InputFormat','uuuuMM...

6 months ago | 0

How to remove leading zeros in decimal representation?
Hi! Use str2num. A = [23, 15, 256, 75]; B= dec2bin(A) B = str2num(B) Hope this helps

6 months ago | 1

how can we get this output ?
Hi! You will only need a ramp block (set both start time and initilal output to 4), and a scope. Open the scope, go to view > ...

6 months ago | 0

how to solve array dimension for matrix multiplication issue?
Hi ! Yes, multiplication of two arrays with incompatible sizes will throw an error ! A possible solution is to pad (zero pad i...

6 months ago | 0

| accepted

How to write each iteration (data) in for loop to excel and how to read multiple excel files together?
Hi! With the below command you are overwriting output1.xlsx file, hence you are only getting the last written file. writetable...

6 months ago | 1

| accepted

How to customise the zlabel?
hI! Something like this : [X,Y] = meshgrid(1:0.5:10,1:20); Z = sin(X) + cos(Y); surf(X,Y,Z) % ACHange z label zticks ; ...

6 months ago | 0

| accepted