답변 있음

How to change only 1 bar in a graphic bar that is grouped

Hi! Try something like this: y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; barH = bar(y) ; barH(1).FaceColor = "flat" ; barH(1).CData...

How to change only 1 bar in a graphic bar that is grouped

Hi! Try something like this: y = [2 2 3; 2 5 6; 2 8 9; 2 11 12]; barH = bar(y) ; barH(1).FaceColor = "flat" ; barH(1).CData...

대략 2년 전 | 0

답변 있음

Draw a 3D array containing only 0,1 into a 3D image

Hi! You have a volumetric data; I recommend that you use Volume Viewer to visualize it. An example below: M = randi([0 1], 10...

Draw a 3D array containing only 0,1 into a 3D image

Hi! You have a volumetric data; I recommend that you use Volume Viewer to visualize it. An example below: M = randi([0 1], 10...

대략 2년 전 | 0

답변 있음

Heatmap plot temperature vs time

Hi! I know what is the issue. You have a timetable not a table and the first column related to time is not considered as variab...

Heatmap plot temperature vs time

Hi! I know what is the issue. You have a timetable not a table and the first column related to time is not considered as variab...

대략 2년 전 | 0

| 수락됨

답변 있음

How to calculate the peak-to-peak amplitude of a waveform?

Hi! Use peak2peak function. Demo below: load('ecgSignals.mat') t = (1:length(ecgl))'; plot(t, ecgl) peak2peak(ecgl) ...

How to calculate the peak-to-peak amplitude of a waveform?

Hi! Use peak2peak function. Demo below: load('ecgSignals.mat') t = (1:length(ecgl))'; plot(t, ecgl) peak2peak(ecgl) ...

대략 2년 전 | 0

답변 있음

How to remove Noise using histogram In Matlab

Hi! Below is a workflow based on groupcounts function: clear load noisydata.mat figure subplot(211) plot(dataset, 'o') ti...

How to remove Noise using histogram In Matlab

Hi! Below is a workflow based on groupcounts function: clear load noisydata.mat figure subplot(211) plot(dataset, 'o') ti...

대략 2년 전 | 1

답변 있음

How can I store video of my for loop code?

I ve written the below code that you can refer to. clear t = 0:1/100:1-1/100; vObj = VideoWriter('AnimPPlot.avi'); open(vOb...

How can I store video of my for loop code?

I ve written the below code that you can refer to. clear t = 0:1/100:1-1/100; vObj = VideoWriter('AnimPPlot.avi'); open(vOb...

대략 2년 전 | 0

| 수락됨

답변 있음

How to write this in the for loop?

Try this -- for n = [1:100 200:300] continue % adding this just to demonstrate end

How to write this in the for loop?

Try this -- for n = [1:100 200:300] continue % adding this just to demonstrate end

대략 2년 전 | 0

답변 있음

How can I add variables on the plot title

Hi! Pass the for loop index to num2str function then pass this to title. Something like this: time = 0:1/100:1-1/100 ; for ...

How can I add variables on the plot title

Hi! Pass the for loop index to num2str function then pass this to title. Something like this: time = 0:1/100:1-1/100 ; for ...

대략 2년 전 | 1

| 수락됨

답변 있음

How to apply color to histograms?

Hi! Not sure if this is what you want, but the concept is there. Work on the histogram handle and use colormap. websave("cible...

How to apply color to histograms?

Hi! Not sure if this is what you want, but the concept is there. Work on the histogram handle and use colormap. websave("cible...

대략 2년 전 | 0

답변 있음

Is there a way to threshold out only the blue elements in this picture?

Hi! Segmentation based color should work properly in this case. Use the app color thresholder to intercatively segment the ima...

Is there a way to threshold out only the blue elements in this picture?

Hi! Segmentation based color should work properly in this case. Use the app color thresholder to intercatively segment the ima...

대략 2년 전 | 0

답변 있음

How can I filter out noise from a signal from representative noise samples?

Hi! Since you have the noise known and the measured signal to filter, I suggest to use adaptive filtering. DSP System Toolbox ...

How can I filter out noise from a signal from representative noise samples?

Hi! Since you have the noise known and the measured signal to filter, I suggest to use adaptive filtering. DSP System Toolbox ...

대략 2년 전 | 0

답변 있음

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

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

대략 2년 전 | 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...

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

대략 2년 전 | 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...

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

대략 2년 전 | 1

답변 있음

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

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

대략 2년 전 | 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...

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

대략 2년 전 | 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/...

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

대략 2년 전 | 1

| 수락됨

답변 있음

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

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

대략 2년 전 | 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...

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

대략 2년 전 | 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...

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

대략 2년 전 | 0

| 수락됨

답변 있음

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

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

대략 2년 전 | 1

| 수락됨

답변 있음

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

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

대략 2년 전 | 0

| 수락됨

답변 있음

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

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

대략 2년 전 | 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.

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.

대략 2년 전 | 0

| 수락됨

답변 있음

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

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

대략 2년 전 | 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...

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

대략 2년 전 | 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...

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

대략 2년 전 | 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,...

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

대략 2년 전 | 1

| 수락됨

답변 있음

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

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

대략 2년 전 | 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 ...

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

대략 2년 전 | 0

| 수락됨