MATLAB Solutions & Expert Answers

Ask an expert. Trust the answer.
Academic and engineering questions answered by verified MATLAB professionals.

MATLAB expert answering student questions
Showing page 23 of 208 Ask a Question
Find function misbehaves when Indexing into array
Michael · Nov 28, 2023 · find , indexing , cell array , MATLAB , Language Fundamentals

I have a function which searches an array for the first value which is below a given tolerance. First, it creates a logic array using the input and a "less than" condition. Then it…

How do I prompt for a variable in one script and use it in another
Will · Nov 28, 2023 · variables , multiple script , MATLAB , Language Fundamentals ,

My first script which prompts the user is as follows   %this main script calls to one main function(isPalindrome) with a subfunction(removeNonAlpha) %this script prompts the user …

How to make a open switch fault using ePWM block(Texas instruments c2000)?
inhyeok hwang · Nov 21, 2023 · epwm , open switch fault , Code Generation , C2000 Microcontroller , Blockset , Peripherals , Con

I'm trying to make open switch fault situation (or the duty cycle of the high side switch to be 0 while not effects the low side one.) . And I'm using a EPWM block from texas instr…

MatLab App Design - how to use default value for Edit Field function?
berrada · Nov 18, 2023 · matlab gui , matlab function , appdesigner , app designer , matlab app designer , edit field , Devel

Hello,   I have an Edit Field box on the Design view and I opened a callback in the Code View. There is a default value in the Edit Field box that I would like to be used automati…

How to set to 'none' the UnitsInconsistencyMsg
Marco Ranieri · Nov 18, 2023 · units , model advisor , MATLAB , Simulink

Hi, I have defined some unit of measure in bus objects, using the bus editor, but whenever I run a simulation I get the following message:   Warning: The units 'm3' specified on b…

Genetic Algorithm : Lower and Upper Bounds
Johan · Nov 17, 2023 · genetic algorithm , optimization , Mathematics and Optimization , Global Optimization Toolbox

How to choose the VarMin (Lower Bound of decision Variables) and VarMax (Upper Bound of Variables) of any problem when using the genetic algorithm optimization ? What its effect on…

How can I save a figure within app designer?
J. Webster · Nov 17, 2023 · app developer , graphics , save , figure , MATLAB , App Building , Develop Apps Programmatically

I've developed an application using the new App Designer. I'd like to have users be able to click a button and save a figure to a .fig file, or some other image format.   function…

Get a Free Consultation or a Sample Assignment Review!