已回答
how to multiply every single element in a matrix to entire of another matrix?
If you're asking can you dynamically create variables with numbered names like x1, x2, x3, etc.? Yes. Should you do this? The g...

18 days 前 | 2

已回答
is there a way to make the 0 x and y axis bold?
If you wanted to highlight the X and Y axes by making them cross at the origin, set the XAxisLocation and YAxisLocation properti...

18 days 前 | 0

已回答
Wrong suming output in simulink r2023A
I don't work with Simulink that much, but I'd check the data types of the various signals in your code. 106 - (-150) The fact ...

18 days 前 | 0

已回答
Subtracting a Vector from a Scalar-Multiplied Matrix
See this documentation page.

20 days 前 | 1

| 已接受

已回答
Unrecognized method, property, or field 'updateGraph' for class 'app1'.
Your updateGraph function is nested inside your UIAxesButtonDown method. So it's not a method of the class. Move the updateGrap...

21 days 前 | 0

已回答
Number of counts in matrix
Use histcounts with unique (or uniquetol) to generate the bins. You will need to add one more bin at the end since the last bin ...

21 days 前 | 0

已回答
Download of addons & update are blocked by company firewall
I am not 100% certain but I believe Add-Ons Manager and the Update installer need to connect to the same servers as the MathWork...

22 days 前 | 0

已回答
Parse error at x
If all of the code you posted is in the same file, the line where you define the initial value occurs after the end keyword that...

23 days 前 | 1

已回答
Generate 3D histogram while capping the height of bars
Rather than trying to make hist3 or histogram2 truncate the bins, consider using zlim to control the limits of the Z axis. x = ...

23 days 前 | 0

已回答
Drawing polygons from vertex coordinates
See the polyshape function. If you're hoping MATLAB will automatically "figure out" what the polygons should be from your scatt...

23 days 前 | 1

已回答
I can't run a file
Most often I'd expect to see this if you tried to include either a space in the name of your MATLAB program file (not allowed) o...

24 days 前 | 1

| 已接受

已回答
Telling numbers and letters apart
You can use the isstrprop function to determine which characters inside a string are letters. S = ["D56788T5434" "E44G5555" "...

24 days 前 | 0

| 已接受

已回答
For "Characterize Battery Cell for Electric Vehicles" the "copy command" does not lead to the same content as the website example
The version of the example on the website is from the most recent release, which as I type this is release R2024a. You indicated...

25 days 前 | 1

| 已接受

已回答
Information needed to identify your computer is missing or invalid.
Please contact Customer Service directly using this link for help with setting up a license to run on both the classified and un...

26 days 前 | 0

已回答
matlab program drawing style
Note the scale of the Y axis in your plot. Around t = 0 and t = 0.033 the value of D must get very small in magnitude, leading t...

26 days 前 | 0

已回答
When running an exe created from a matlab app, where are the variables stored?
The variables are stored in the memory of the executable. Just like you don't need to allocate space for your web browser to sto...

26 days 前 | 0

| 已接受

已回答
Perform Calculations on Data in A Table and Create a New Table
I'd likely turn your Time column into a duration array (using the seconds function) then convert your table into a timetable usi...

26 days 前 | 0

| 已接受

已回答
Parallel computing of "for" loop
Is it the case that the computation of the value for the entity in the second iteration of your loop requires the value of the e...

26 days 前 | 0

| 已接受

已回答
Not getting the expected size matrix from evaluating a function handle that is equal to zero
I am expecting Z to be zeros matrix of 10x10. But I am getting Z to be a 0 of 1x1. Why? Because that's what you told your fun...

26 days 前 | 0

已回答
Creating three shaded regions in a loglog plot
If you're using release R2023a or later and you want to create horizontal or vertical regions, consider using the xregion and/or...

27 days 前 | 1

已回答
In Matlab AppDesigner -> Generation of a Report with a Word Template: Problem with Input Arguments for function 'Document'
The mlreportgen.dom.Document Class is in the mlreportgen.dom namespace. What did you import? import mrlreportgen.dom.*; You ha...

28 days 前 | 1

| 已接受

已回答
why is not equal
Rather than converting from degrees to radians and then computing the sine of the angle in radians, why not just use the sind fu...

29 days 前 | 0

已回答
How can I Integrate on an array with respect to another array
To integrate data sets use the trapz or cumtrapz functions. If you had functions to integrate use the integral family of functi...

29 days 前 | 0

| 已接受

已回答
if-statements for reassigning values
Let's look at the exact text of the error you received. N=randi([-100,100]); if N=[-20,20] N=N*2 else if N>20 N...

1 month 前 | 2

已回答
Have the nnd4db command been removed for 2023b
I believe that command was part of an old demo that was removed from Deep Learning Toolbox in release R2023b. Looking back at t...

1 month 前 | 0

| 已接受

已回答
ANY and ALL with NaN array
Not a bug. On that documentation page, the description of the A input argument states in part "The any function ignores elements...

1 month 前 | 0

| 已接受

已回答
How to create separate data for daylight hours and nighttime hours in MATLAB?
Since the timestep of the model output is in UTC, I have to add 5.30 with the model hours to get the IST (Indian standard time)....

1 month 前 | 0

已回答
Dynamic function call using eval
For this case, use the cast function. x = 42; for n = 3:6 bitlength = 2^n; fprintf("Casting %d to int%d.\n", x, bitl...

1 month 前 | 0

已回答
Interpolating NaN values in a matrix
interp1 isn't the right tool for this job. I recommend using fillmissing (with the dim input argument if you want to interpolate...

1 month 前 | 1

已回答
How to plot quiver vectors of same length and plot streamlines?
For part 1, you probably want to normalize your U and V data (if you assemble them into a matrix, the vecnorm function may be of...

1 month 前 | 0

加载更多