Answered
split table into smaller
At_a_time = 72; %for example G = 1 + floor((0:height(YourTable)-1) / At_a_time).'; vars = YourTable.Properties.Variable...

3 years ago | 0

| accepted

Answered
How do I find the expected value of power in random variable?
That formula can be written in MATLAB as P_hat = mean(u.^2); It is valid only for the case where each u value has the sa...

3 years ago | 0

Answered
How to transfer a function_handle vector to another function in matlab?
vector_func = {@func1,@func2,@func3};

3 years ago | 0

| accepted

Answered
Can i save random data in specific file in order to use them for different simulations?
Yes you can do it. Whether it is a good idea to handle the situation this way is a different question. rng(12345); NumIter = 1...

3 years ago | 0

| accepted

Answered
Global map based on data from a 3D matrix
You have the problem that you have 2D data for each of 12 months. You can only plot data for one month at a time contourm(lat, ...

3 years ago | 0

Answered
Plotting a map by extracting data in time intervals from a netcdf file
data_by_year = reshape(YourData, size(YourData,1), size(YourData,2), 12, []); mean_by_month_over_years = mean(data_by_year, 4);...

3 years ago | 0

| accepted

Answered
Cut Audio Signals (.wav) in specific time.Create a repeat loop to reach the desired time
[st,t,f]=st(xf_out,25,350,1,1); % still need to bo worked out The first time you execute that statement, there is not vari...

3 years ago | 1

Answered
Taylor Series figure problem
Your fplot syntax was wrong. xx= linspace(-pi,pi, 100); syms x fx=(x*x^2)*sin(x*x)+exp(-x*x)*(cos(x*x)^2); figure(1) fplot(...

3 years ago | 0

Answered
Normalized data to lookup table
There are a number of circumstances in which you can just use the normalized values as the data, and use a colormap(), and the v...

3 years ago | 0

Answered
how to plot speed time
f=@(t,dphi) ((t<t(1))*dphi(1)+... ((t>t(1))&(t<t(2))).*((dphi(2)-dphi(1))/(t(2)-t(1))*(time-t(1))+dphi(1)*ones(size(t)))+.....

3 years ago | 0

Answered
Why can future values affect NARX time series output?
I am perhaps being naive on this, but the behaviour you describe for NARX is what I would expect. Suppose you had a series of p...

3 years ago | 0

| accepted

Answered
Determine the bode plot for the system using MATLABGs=()1s0.2s+10.05s+1()()
Example: %Example: (1s-2)/(1.7s^3 + 8.3s^2 -1*s + 5) sys = tf([1 -2], [1.7 8.3 -1 5]); bode(sys)

3 years ago | 0

Answered
Want to run fuzzy2t on R2022b, it displaying this. Any adivce?
It looks like you are using https://www.mathworks.com/matlabcentral/fileexchange/66225-interval-type-2-fuzzy-logic-system-toolbo...

3 years ago | 1

| accepted

Answered
How to average certain parts of a cell and create a new cell containing those averages?
At_a_time = 5; average_cell = arrayfun(@(IDX) mean(cat(3,YourCell{1,IDX*At_a_time-4:IDX*At_a_time}),3), 1:floor(size(YourCell)/...

3 years ago | 0

Answered
Please help. error after plotting on narginchk(ai,inf)
previously you enabled dbstop if naninf and you did not disable that or quit matlab. It is still in effect. The code for...

3 years ago | 0

| accepted

Answered
How do I go about indexing values from my "for loop", for each iterations, for variables k and S?
You should this pattern, of separating the values from the indices. When you use this kind of pattern, the values do not need to...

3 years ago | 0

| accepted

Answered
Convert script using system commands from Linux to Windows
Unless ivtfile has wildcard patterns recognized by your linux shell, use dinfo = dir(ivtfile); outdirs = {dinfo.folder}; ivtf...

3 years ago | 1

| accepted

Answered
piecewise function with N conditions
For whatever good it will do you (probably not much) N = 5; syms f(x) [N 1] %f will be a function F = formula(f); %F will...

3 years ago | 1

| accepted

Answered
calculate the area of Estimate Anchor Boxes
recognitionThree appears to be code you wrote. The code data(ii,2:4) = {I, Wboxes} appears to be your code. You are trying to ...

3 years ago | 1

Answered
Symbols in a transfer function:
tf() is part of the Control System Toolbox, which is not designed at all to be able to use symbolic expressions. The Control S...

3 years ago | 1

Answered
What do these lines of code mean
Yes. That code starts with an empty output, and then each time it finds a match, it appends the index of the match at the end of...

3 years ago | 0

Answered
Anyway to avoid the + and @ nasty-ness in MATLAB?
Although I am not a Mathworks employee, I have enough experience with Mathworks to doubt that there are plans to change this (or...

3 years ago | 1

Answered
Why is the code so slow?
# every interaction with an object other than copying the object as a whole, requires making function calls. MATLAB does *not* i...

3 years ago | 0

Answered
Is there a function similar to "where"?
https://www.mathworks.com/help/matlab/matlab_prog/subscript-into-times-of-timetable.html convert to timetable() and use datera...

3 years ago | 1

| accepted

Answered
How to find the total memory used during the execution of the code?
Asking how much memory matlab needs for an algorithm is the wrong question if you are trying to measure how much memory an FPGA ...

3 years ago | 0

Answered
Why should I start a parallel pool manually?
Are you trying to measure how long the parallel portion of the code takes? Is it fair that the timing for the same code might be...

3 years ago | 0

| accepted

Answered
Filled contour plot on other planes (X-Z or Y-Z)
Create a hgtransform() and parent it to the axes. Extract a 2d slice of the volume (interpn() or even just array access and sque...

3 years ago | 0

Answered
my Matlab version is cracked i have trouble in add ons to use raspberry package it doesn't show the packages
The fix for this is to purchase a valid Mathworks licence.

3 years ago | 2

| accepted

Answered
Change the Unit of the 'LineWidth'-property to pixels (not points)
That is not possible. Lines are literally in pixels. Zooming an area containing a line does not make the line thicker. Zooming o...

3 years ago | 0

Load more