Risposto
How to compute the middle part of a sorted eigenvalues of an extremely large sparse matrix
With the default options, eigs computes the largest eigenvalues and eigenvectors. But depending on what you specify as the sigma...

3 mesi fa | 1

Risposto
how i can reprenst in matlab?
It's not clear to me what the question is, unless it's "How can I populate a vector with multiple copies of numbers without typi...

3 mesi fa | 0

| accettato

Risposto
Anyway to make this more concise?
Rather than depending on users typing in the strings exactly as you're looking for them, if you know what variables will be in y...

3 mesi fa | 0

Risposto
Add folder and subfolder to project path
From the documentation page's Version History section: "Starting in R2025a, the addPath function supports adding multiple folder...

3 mesi fa | 1

| accettato

Risposto
whats wrong in this function?
Let's look at the signature of your function (with some line breaks added to avoid scrolling.) function [massetetthet_ZnBr2,mas...

3 mesi fa | 1

Risposto
Include variable value when throwing exception
Why not just build up the appropriate string containing the message with the information you want it to include then call error ...

3 mesi fa | 0

Risposto
In how many functions using the global variable, can a global variable be declared?
A variable in the global workspace is accessible from any workspace where it is declared as global. You may think this is good, ...

3 mesi fa | 1

Risposto
ldpc_dataFormation function missing in documentation
Use the Copy Command button on that example documentation page, then run that command in MATLAB. Assuming you have the toolbox t...

3 mesi fa | 0

| accettato

Risposto
Error using filterDesigner (line 85) Value must be a handle. macOS R2025b
Can you show us the output of these commands? which -all sigtools.fdatool which -all fdatool I suspect you've installed somet...

3 mesi fa | 0

Risposto
Why do Nan values greatly increase the cost of sparse multiplication
Let's look at a sample sparse matrix. S = sprand(1e4, 1e4, 0.1); status = @(M) fprintf("The matrix has %d non-zero elements, a...

4 mesi fa | 0

Risposto
How can I execute a function if it exist, otherwise use a custom function?
Are you trying to use MATLAB Compiler or MATLAB Coder? If the former, you should know that any code that you want the compiled a...

4 mesi fa | 0

Risposto
How to multiply different size arrays and multiply each element by each element?
I recommend using the combinations function to generate the combinations of values, then using variables from the table returned...

4 mesi fa | 1

Risposto
representation of a cell array in 2025b
If you have cells or structs inside of cells (as I suspect is the case in the original poster's question) you could use the cell...

4 mesi fa | 0

Risposto
Will the old-style class definitions be supported in future version of Matlab?
Looking at the Release Notes for MATLAB for release R2025a, there are two relevant notes. One states that classes defined using ...

4 mesi fa | 0

Risposto
Curve Fitting Toolbox Error: This expression has no coefficients or non-scalar coefficients.
The function 57857*((sin(5*30e-6*(sin(x)/450e-9)*pi))/sin(30e-6*(sin(x)/450e-9)*pi))^2*sinc((sin(x)/450e-9)*pi*5e-6)^2 e.g. is n...

4 mesi fa | 0

Risposto
How do I change the size of xq while using the interp1 function as supervision?
You're interpolating the spectra data at temperatures in xq. Based on what you showed of size(controle) I assume xq has 326 elem...

4 mesi fa | 0

| accettato

Risposto
I want to avoid fractions in my answer to the null space
Use the numden and lcm functions to identify what you need to multiply the fractions by to make them whole numbers.

4 mesi fa | 1

Risposto
Saving a grid of lines to be recalled using findobj and assigning to an app property
Just because the handles exist doesn't mean they're valid. They can hold handles to deleted objects. Let's make a figure handle....

4 mesi fa | 0

Risposto
sine wave plot
If you're using release R2018b or later, rather than computing sin(pi*something), I recommend using the sinpi function (and ther...

5 mesi fa | 0

Risposto
One plot line is messing up the two other plot lines/points
In your second plot, the Y axis limits are 0 and 4. Your data points for your first and third lines all have Y coordinates in th...

5 mesi fa | 1

Risposto
[coeffA,scoreA,latentA] = pca(X);
If you truly do not need the second output (but do need the first and third) tell MATLAB to ignore the second output when you ca...

5 mesi fa | 0

| accettato

Risposto
run function from command line
I'm not 100% sure this option was available in releases R2017a or R2017b, but I'm pretty sure it was. Use the -sd startup option...

5 mesi fa | 0

Risposto
Class Unexpected Behaviour with Properties and Type Casting
Shouldn't this code produce at least a runtime error when meh is assigned to a cell object instead of forcing this automatic typ...

5 mesi fa | 1

| accettato

Risposto
How can I add a backup an option, addSaveCallback, to save a timestamped version of my file, to the MATLAB editor?
Do the Editor/Debugger Saving settings not satisfy your needs?

5 mesi fa | 0

Risposto
I have a code but am unable to use if conditions with matrix value
You haven't told us what you're doing or why Star Strider's suggestion didn't work for your application, so we can't offer speci...

5 mesi fa | 0

Risposto
MATLAB R2025a on Windows 11 [background open after closed]
If the processes you're seeing remaining open are matlabwindowhelper processes, see Bug Report 3724070. Follow the bug report an...

5 mesi fa | 0

Risposto
Why do I receive MathWorks Licensing Error 5?
I recommend checking with the administrators of your license to ensure that Simscape Multibody is included in your license and t...

5 mesi fa | 0

| accettato

Risposto
Warning Suppression Request Ignored MATLAB R2017b
Try running the following command then executing the code or instructions that issue the warning. dbstop if warning Once MATLA...

5 mesi fa | 0

Risposto
A more efficient way to do this calculation
Take a look at the discretize function.

5 mesi fa | 2

Risposto
Do you have a HECVAT & VPAT for the MATLAB software?
If you go to the end of this page and click on Trust Center, you can download the VPAT for MATLAB, Simulink, MATLAB Online, and/...

5 mesi fa | 0

Carica altro