Réponse apportée
Finding a character and returning that character
Your variable vowels is a cell array. You cant switch based on a cell array. Instead take each word, and run a for loop on each ...

plus de 8 ans il y a | 0

Réponse apportée
how to design a calculator by using panel in gui?
https://in.mathworks.com/matlabcentral/fileexchange/12089-calculator

plus de 8 ans il y a | 0

Réponse apportée
Font color from Excel to Matlab
objExcel=actxserver('excel.application'); objExcelW=objExcel.Workbooks; objExcelF=objExcelW.Open('ExcelFileName');...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Font color from Excel to Matlab
It is not straighforward. You will have to use ActiveX https://in.mathworks.com/help/matlab/matlab_external/using-a-matlab-app...

plus de 8 ans il y a | 0

Réponse apportée
How can I compute the leap years?
function [leapyears] = leapyears(startyear,endyear) leapyears = []; for iYr=startyear:endyear if mod(iYr,4)==0 &...

plus de 8 ans il y a | 0

Réponse apportée
Only display desired files using uigetfile
Just use A*.mat for FILTERSPEC [MATfiles,path2] = uigetfile('A*.mat','Select MAT files' ... , 'C:\Users\Sean\Desktop...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Is possible to change Sample time in signal builder programmatically?
First: Signal Builder is actually a masked from workspace block. So you can find the underlying from workspace block using find...

plus de 8 ans il y a | 0

Réponse apportée
Generated code from Simulink model to use in Polyspace Bug Finder
Polyspace (Bug Finder or Code Prover) will pick the .c and .h files automatically and create the necessary project files. Just ...

plus de 8 ans il y a | 0

| A accepté

Réponse apportée
Faster / more precise logarithm of complimentary error function?
>> format long >> log(erfc(-5:5))

plus de 8 ans il y a | 0

Réponse apportée
how to connect signal builder outputs to the inputs through mscript.
%gcs is the current subsystem % let 'signalbuilder' is the name of the signal builder block %let 'and' be the name of th...

plus de 8 ans il y a | 1

Réponse apportée
Matlab Gui. Retrieve the output of a function (external .m file) within a push button. Could anyone explain how to do it?
Whatever you have done so far is fine. Just that there needs to be a external_Function.m file with the function defined as [w,DP...

plus de 8 ans il y a | 0

Réponse apportée
How to import excel file into my simulink model without communicating with workspace
If u can store in a mat file, u can use *From File* block in your model. Alternatively u can use m-functions But why do you ...

plus de 8 ans il y a | 1

| A accepté

Réponse apportée
Detect change block is not working as expected
Normally when detecting changes in a float signal, we check if the absolute difference to previous value is greater than some co...

plus de 8 ans il y a | 0

Réponse apportée
display pass if 95% of the value below one value
dataIn = rand(1,80); if (sum(dataIn>.35)/numel(dataIn)>.95) disp('PASS'); else disp('FAIL'); end

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Help me powergui variable setting
Is the variable written to base workspace? A Simulink Model refers its configuration parameters from Base Workspace.

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Import Mixed Data from Text Files
fid = fopen('mydata.txt'); C = textscan(fid, '%d(%f,%f,%f)'); fclose(fid);

presque 9 ans il y a | 0

Réponse apportée
String of GUIDE-gui-button does not change immediately with command set(handles...'String'...)
use drawnow http://in.mathworks.com/help/matlab/ref/drawnow.html

presque 9 ans il y a | 2

| A accepté

Réponse apportée
If-Else inside Stateflow Chart
In that case You have to implement a new output variable (output to Simulink). And to this output variable, you can assign the i...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
If-Else inside Stateflow Chart
From the error, I think you are trying to assign value to an input signal example {signal_name = xyz}. This is not possible. ...

presque 9 ans il y a | 1

Réponse apportée
How to split a vector in to sub vectors?
v = [1:1:8812]; window_size = 20; iCount = size(v,2); iStartIDx = [1:window_size :iCount]; for iLoop=1:length(iSta...

presque 9 ans il y a | 0

Réponse apportée
define variable value in simulink model
Instead of a Gain, use a divide(product) block. First argument is the signal, Second will be from a data store read (the pair of...

presque 9 ans il y a | 0

Réponse apportée
what is mean by this
There are a number of nodes in your problem - denoted by "NumberOfNodes". xd, yd, E, R are properties of each of these nodes....

presque 9 ans il y a | 0

Réponse apportée
Can I Load/Combine Vectors Data
number_of_mat_files = 2; for iLoop=1:number_of_mat_files sMatFileName = ['file', num2str(iLoop), '.mat'];%construct ...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
what is mean by this
S is an array of structures. xd is one of the members of the structure (type unknown). In the given line, member xd of the...

presque 9 ans il y a | 1

Réponse apportée
Designing bus signals with same names but different buses
<</matlabcentral/answers/uploaded_files/84541/2017-08-03%2018_11_32-untitled%20_.png>> You can directly connect the selected ...

presque 9 ans il y a | 0

Réponse apportée
How to find maximum value among R,G,B channels in the same indices?
A = imread('thank-you.jpg'); [iRows, iColumns, ~] = size(A); for iLoop1=1:iRows for iLoop2=1:iColumns ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How to find maximum value among R,G,B channels in the same indices?
I dont know any direct way, but you can run a loop on the length and breadth of the image matrix to find the max of R, G, B at e...

presque 9 ans il y a | 0

Réponse apportée
Designing bus signals with same names but different buses
You should use bus selector to select the members you need and take it to subsystem with simple inports (non-bus).

presque 9 ans il y a | 1

Charger plus