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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

Risposto
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

oltre 3 anni fa | 1

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

| accettato

Risposto
if clause for a nonscalar operator
If I understood correctly: p=[]; if ~isscalar(p) disp('hello') else disp('bye') end

oltre 3 anni fa | 1

| accettato

Risposto
can anyone explain what this piece of code do?
Hi! Your code does the basic Model Interconnection and some LTI system analysis (poles zeros plot). Try to learn from the doc...

oltre 3 anni fa | 0

Risposto
Hello everyone I want to ask how to reduce the length of the legend line.
Hi! Perhaps this: figure hold on plot(1:10, randi(5,10,1)) plot(1:10, randi(10,10,1)) % Modify x1 and x2 based on your...

oltre 3 anni fa | 1

| accettato

Risposto
How to plot this function
Hi! Since you need to multiply by the truth, maybe this below: f = @(x,y)((((x.^3).*y - x.*(y.^3)) ./ (x.^2 + y.^2) ).*( x ~= ...

oltre 3 anni fa | 0

Risposto
Load array from .mat file in Matlab System
Hi! I believe you are building a model in Simulink! If this is the case, you don't need to write a function for loading data: ...

oltre 3 anni fa | 0

Risposto
How to export struct saved in workspace to text file
Convert to table and then wrtie to text file: % Example 1: convert and write to table S.Str = 'I Love MATLAB' S.Date = dateti...

oltre 3 anni fa | 1

| accettato

Risposto
Contour plot using GPU computing
Hi! If you have Parllel Computing Toolbox, you can use gpuArray to store your data in the GPU memory, and since countour functi...

oltre 3 anni fa | 0

Risposto
loop a matrix through disorder columns indices
Hi! What about this below! % Dummy A A = randi(4, 100, 5 ) ; % B = [] ; for cIdx = [2 5 3 4 1] B = [B, A(:, cIdx...

oltre 3 anni fa | 1

Risolto


Convert a numerical matrix into a cell array of strings
Given a numerical matrix, output a *cell array of string*. For example: if input = 1:3 output is {'1','2','3'} whic...

oltre 3 anni fa

Risolto


Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...

oltre 3 anni fa

Risolto


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

oltre 3 anni fa

Risposto
Save coefficients from fitlme function in a table
Hi You need to use dataset2table. Demo: load imports-85 tbl = table(X(:,12),X(:,14),X(:,24),'VariableNames',{'Horsepower','C...

oltre 3 anni fa | 0

| accettato

Risposto
Random number generator for matrix
Hi! Perhaps this: bounds = [10 20] ; % [a b ] randA = diag(diag(randi(bounds, 3,3))) Hope this helps

oltre 3 anni fa | 0

| accettato

Risposto
mxArray to double?
Hi! I' m not sure how did define variable count as double! Try to preinitialize the variable count before calling the function...

oltre 3 anni fa | 2

Risposto
app handler(appdesigner) is missing from workspace
Hi! You can use assignin . Read more: https://www.mathworks.com/help/matlab/ref/assignin.html Hope this helps

oltre 3 anni fa | 0

| accettato

Risposto
How to find the Helper function associated with the Model?
Hi! You have to open the example in MATLAB. openExample('driving/Create360BirdsEyeViewImageAroundAVehicleExample') Current ...

oltre 3 anni fa | 2

Risposto
dsp.SineWave in Matlab function block not generating sine wave on the scope
Hi! Why do not you use sinWave block available in dsp system simulink library instead of writing a MATLAB function for that ? ...

oltre 3 anni fa | 1

Risposto
Can't prove the convolution theorem of Fourier theorem for two dimensional matrices.
Hi! Please read about discrete convolution .... Perhaps this: Conv, fft and ifft x = randi(10, 20, 1); y = randi(20,20,1)...

oltre 3 anni fa | 0

| accettato

Risposto
error in table2array - unable toconcatenate the specified table of arrays
Hi! table2array Converts table to homogeneous array. Your table has mix data (numric, text, ). table2cell is an option that you...

oltre 3 anni fa | 0

Carica altro