Answered
Not really understanding why cdata isn't working
heatmap can be called in two different ways. If you call it with a 2d numeric array, then a map is constructed that is the sa...

4 years ago | 0

Answered
How do I enter same string input in a vector?
UTMZ = repmat('30 T', 1, length(Sy)).';

4 years ago | 0

Answered
Counting number of nonempty cells within a cell
nnz(~cellfun(@isempty, my_cell))

4 years ago | 0

| accepted

Answered
How can I create a 3D solid body from a surface plot (x y z data points) and export it (preferably as STL) to a CAD software?
There are file exchange contributions for surf2stl() and patch2stil()

4 years ago | 0

Answered
I have a .h5 file of size 128x128x64, hdf5read or h5read command is reading 64x128x128, I want MATLAB to read original size of the file, can you please help me?
You need to examine the hdf5info that is returned, looking at the dimensions information for file.GroupHierarchy.Datasets(1) to ...

4 years ago | 0

Answered
How to apply ga on single variable?
You do not define any range for x, so it could be less than -1, leading to a negative value raised to a fraction. It is not clea...

4 years ago | 0

| accepted

Answered
How could I get the radial colour distribution of an image?
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1076570/image.jpeg'; I = imread(filename); R = doub...

4 years ago | 0

Answered
Will I be able to use Matlab indefinitely (as long as I remain enrolled in the school) if I purchase the student version?
You are entitled to use your Student license indefinitely, but only while you are enrolled in an appropriate degree-granting ins...

4 years ago | 0

Answered
Trying to code a state space modelling for thrust vector control of a rocket. I keep getting Error using plot, Invalid Data Argument, please help
cvector{k} not (k). You cannot pass a cell array into plot, you have to dereference it

4 years ago | 0

Answered
When using readtable function to read values out of an excel sheet, the values Matlab produces don't change to match updated spreadsheet
You are not using the UseExcel option to tell readtable to talk to excel. Changes at the excel level are not going to affect the...

4 years ago | 0

| accepted

Answered
any one known how to take the y axis limit?
unless your y axes labels have no connection to the plot, then your y values are in the range 0.1-1e-13 to 0.1+1e-13 . What axes...

4 years ago | 0

Answered
Which MATLAB GUI framework to use?
Are you prepared to pay the Oracle per-desktop license fee to run your Java-based code? Because the only update that Java used b...

4 years ago | 0

Answered
How to use my excel data for fuzzy c-means clustering with MacBook
readmatrix or readtable, unless you are using an old version of MATLAB.

4 years ago | 0

Answered
How to plot 3D trajectory with lat, long and height available?
% assuming col 1 is lat, which is y not x c = readmatrix(FILENAME) ; plot3(c(:,2), c(:,1), c(:,3)) unless, that is, y...

4 years ago | 0

Answered
How to solve "Error using split First argument must be text"
readtable is returning that column as datetime objects. You cannot split() datetime objects. mask = dates < datetime(1000, ...

4 years ago | 0

| accepted

Answered
how include e1 dot in legend ?
plot(rand(1,5)) legend({'$\dot{e_1}$'}, 'interpreter', 'latex') To reduce the values on the y axes, you could use ytickformat ...

4 years ago | 1

| accepted

Answered
Matlab Runtime Compiler creates the .m files in the mcrCache
https://www.mathworks.com/help/matlab/matlab_prog/protect-your-source-code.html Starting in R2021b, you can obscure the names ...

4 years ago | 1

Answered
Check for incorrect argument data type or missing argument in call to function 'diff'
x = fplot(@(x)evalspec(x,ix),[0,wnc]); dwMin = min(min(diff(x)),dwMin); When you only return a single output f...

4 years ago | 2

| accepted

Answered
how to use array indices in not logical form
syms F_cyc_k i q_up T t assume(0 < F_cyc_k & F_cyc_k < 1) assume(T > 0) q_down = symsum( ((1-F_cyc_k)^(i-T) * F_cyc_k)*q_u...

4 years ago | 0

Answered
I need to integrate the folowing integral: 1/T * integral x^2(tau) dtau [t+T/2, t-T/2]
syms T t tau x result = 1/T * int(x^2 * tau, tau, t-T/2, t+T/2) tau should be chosen from user No, that is inconsistent with ...

4 years ago | 0

Answered
怎么全部导出附件word里面图片的B0005(struct)中的Capacity的数值
types = {B0005.cycle.type}; mask = strcmp(types, 'discharge'); discharge_subset = B0005.cycle(mask); discharge_capacities = a...

4 years ago | 0

Answered
I need to create a 3D contour/surface plot with given points.
N = 200; P = 20; x = rand(1, P); y = randn(1, P); z = sinpi(y*2) + exp(2*x); figure() scatter3(x, y, z) xvec = linspa...

4 years ago | 0

Answered
What is wrong in my script?
Your code defines e1 and e2 in terms of symbolic variables m2 and j2 . Later it does for loops that assign values to m2 and j2. ...

4 years ago | 0

Answered
Please someone correct the error
res=[y0(1)-0;y0(2)-1;y0(4)-0;y0(6)-1;yinf(2)-0;yinf(4)-0,yinf(6)-0]; ^ ...

4 years ago | 0

Answered
Obtain variable name in TLC
In C, sizeof testModel_Y.Outport is the size of the pointer contained in testModel_Y.Outport . Multiplying the size of one ele...

4 years ago | 0

Answered
Find the value of r such that the determinant of A is zero.
syms r A=[cosd(90),0,-r*sind(90);0,1,0;sind(90),0,r*cosd(90)] solve(det(A)) This will get you the exact 0

4 years ago | 1

Answered
Is it possible to generate an encrypted function that can be used a limited number of times?
In order to prevent attacks based on restoring the hardware or changing the clock, you will need to write the function to use an...

4 years ago | 0

Answered
how to know the coordinates when I know the one coordinates, angle and distance between two coordinates?
Trig. r*sin(theta), r*cos(theta) gives offsets, add the starting location to get final location. Watch out for degrees and ra...

4 years ago | 0

Answered
Extract headers from CSV and add to app.Items
header = bud_serials.Properties.VariableNames; app.SelectTestID.Items = header;

4 years ago | 1

| accepted

Answered
Convert polynomial operations inputs in double vector as output
You should probably approach this as a task in Parsing. It is a lot easier to get this kind of task right if you write a formal ...

4 years ago | 0

Load more