Answered
Extracting variable data at specified location from .nc file
loc = [i j 1 1]; count = [1 1 inf inf]; varname = 'temp'; tempdata = ncread( ncfile, varname, loc, count); However...

4 years ago | 0

| accepted

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
Go through your expression character by character, counting brackets. Each time you have a ( character increase the count by 1. ...

4 years ago | 0

Answered
how to get decimal answers?
sympref('FloatingPointOutput',true); I personally do not recommend this approach, as I find that there are many cases where...

4 years ago | 2

Answered
How to display an expression using an array
char(der) rather than num2str(der) The result of diff() applied to a symbolic expression is a symbolic expression, not a numb...

4 years ago | 0

Answered
using inputdlg function in user defined function
"I would like to apear the box only one and keep on the simulation run" That is not possible with inputdlg() See <https://...

4 years ago | 0

Answered
Hello.. I am working on detecting lung nodules and I would like to know how to convert the lung nodule extracted from a CT image into a 3D image.
Take the binary image and use bwtraceboundary or bwboundaries to get the coordinates of the edge pixels. Take each outer edge's...

4 years ago | 0

Answered
Download a file from a website?
See websave webread urlwrite ftp and mget sftp

4 years ago | 1

| accepted

Answered
i used format shortg but still the result is come in e format and fraction
a2 come in the fraction form That is expected for format short. When using format short, all values greater than 100000 that ar...

4 years ago | 0

| accepted

Answered
fsolve for equations system with syms
fsolve must be applied to a function handle (or a character vector that names a function.) There is no fsolve for symbolic expre...

4 years ago | 0

Answered
Extracting data from part of a plot
Do they need to be extracted from the plot or can we use x and y instead? Is the number of groups known? This code assumes that...

4 years ago | 1

Answered
How can I easily and automatically arrange text objects on a figure so they are not placed on top of each other or plots?
The significantly easier solution to this problem is to use annotation 'arrow' and 'text' to put labels outside of the plot that...

4 years ago | 1

| accepted

Answered
How to access properties of objects instantiated between different classes in multi-window matlab app designer
app2 and app aux each have constructor methods. Change the constructors to accept an option parameter which is the handle of the...

4 years ago | 1

| accepted

Answered
Getting Different plot values
Your data is not at all in pairs. Your data is in groups of 10 -- the data starts at 0 and returns to 0 each 10 entries. You ta...

4 years ago | 0

| accepted

Answered
Dot indexing is not supported for variables of this type??? Parfor loop, and global variable
You can use parallel.pool.Constant to send a copy of the data to all workers, and you can use parfevalOnAll to run a function on...

4 years ago | 1

Answered
Your software can solve transport matrices of more than 9000 cells of variables?
Generally speaking: There are some algorithms that require storage space that is linear in the number of variables being optimi...

4 years ago | 0

Answered
Error using Distributed Parameter Line Block
See https://www.mathworks.com/help/physmod/sps/powersys/ref/powergui.html The default Sample Time is 50e-6 seconds; you need t...

4 years ago | 0

Answered
Object returning its field possible?
See https://www.mathworks.com/help/matlab/matlab_oop/extend-built-in-class-operators.html

4 years ago | 0

| accepted

Answered
How to generate m code for a variable
If the variable is double precision and is at most 2 dimensions, then you can use mat2str to construct the right hand side aa =...

4 years ago | 0

Answered
how do I swap both axes in the current plot
You have three options: * you can solve U for y, taking caution because it will be multi-valued * you can use hg transform g...

4 years ago | 0

Answered
Meta question about using this forum
The questions here that get the most response are the ones that post code and error message, and data files help too. Questio...

4 years ago | 1

| accepted

Answered
dummy variable for calculating
Create a list of valid subsector codes, and a corresponding list the same size of the sector each should belong to. Use the t...

4 years ago | 0

Answered
Why doesn't my for follow automatically complete end
Enable Preferences -> Editor/Debugger -> Automatic Completion -> Autocoding options -> Autocomplete block endinges "Control flo...

4 years ago | 1

| accepted

Answered
How to compress a grey level image in different compression ratio
The png file has full data. When you imwrite an image as .jpeg, the compression algorithm first transforms the image as a serie...

4 years ago | 1

| accepted

Answered
I want to convert a text file into csv formate. How I can do that?
readtable to read the text file. writetable to write to csv (or xlsx) format. Note: this approach might have difficulty if ther...

4 years ago | 0

Answered
Not understanding why I get "too many input arguments error" for anonymous funtion
f = daeFunction(eqns, vars, extraParams); when you pass in a vector of variable names after the vars in daeFunction, everything...

4 years ago | 0

| accepted

Answered
How to find the value from equations?
eqn = (1*10^(-5)).*(Wg./Lg)* log10( 1 + exp(a./5)) ./ ( 1 + exp(a./5))==Ids IDS is a vector, so eqn is a vector. But syms a is ...

4 years ago | 0

| accepted

Answered
Trouble with my homework - Getting an error in my linear programming code requiring a double.
linprog((f,A,ub,[],[],lb,options) You missed passing ub in. Your options are in the ub slot.

4 years ago | 0

| accepted

Answered
WebApp Using dir to get client directoy
There is no supported way to do that. Technically, the ability is (if I recall correctly) supported with restrictions under HTM...

4 years ago | 0

Answered
the plot is not appearing what should i fix ?
for i=1:length(Depth) E(i)=Depth(i)+q^2/(2*g*Depth(i)^2); end plot(app.UIAxes,E,Depth,'r'); However, the convention ...

4 years ago | 0

Answered
When will Ubuntu 22.04 be supported?
September 20, 2023.

4 years ago | 0

Load more