Question

How many timers can run parallely in MATLAB?

I have three different types of sensors connected to a single PC. I am using three different timers to read data from those sens...

5 månader ago | 0 answers | 0

Answered

App UIAxes Zoom Control

As far I have understand, you are facing problem is the new plot appears in the axes limits for the previous zoom state. You ca...

App UIAxes Zoom Control

As far I have understand, you are facing problem is the new plot appears in the axes limits for the previous zoom state. You ca...

7 månader ago | 0

Answered

Fill areal between graphs

This may help you x = -pi:pi/10:pi; y=sin(x); y2=0.8*y; area(x,y,'Facecolor','r') hold on area(x,y2,'Facecolor',[1 1 1]) ...

Fill areal between graphs

This may help you x = -pi:pi/10:pi; y=sin(x); y2=0.8*y; area(x,y,'Facecolor','r') hold on area(x,y2,'Facecolor',[1 1 1]) ...

11 månader ago | 0

Answered

Drop Down Menu to GUI in Matlab. How to connect Drop Down menu to the Function and Callback

Please find below a sample. Hope you can work on that for other options. classdef app3_exported < matlab.apps.AppBase % ...

Drop Down Menu to GUI in Matlab. How to connect Drop Down menu to the Function and Callback

Please find below a sample. Hope you can work on that for other options. classdef app3_exported < matlab.apps.AppBase % ...

11 månader ago | 0

Answered

How to plot graph from mat file?

clc; clear all; close all; s = load('lai3.mat'); x=s.lai3(:,1); % s is having a field named lai3 y=s.lai3(:,2); plot(x,y)

How to plot graph from mat file?

clc; clear all; close all; s = load('lai3.mat'); x=s.lai3(:,1); % s is having a field named lai3 y=s.lai3(:,2); plot(x,y)

12 månader ago | 0

| accepted

Answered

How to automating plot axis labels?

Use the following lines. xlabel(['day-', inputname(1)], 'Interpreter', 'none' ); ylabel(['cases-', inputname(2)], 'Interpreter...

How to automating plot axis labels?

Use the following lines. xlabel(['day-', inputname(1)], 'Interpreter', 'none' ); ylabel(['cases-', inputname(2)], 'Interpreter...

12 månader ago | 1

| accepted

Answered

converting string data to numbers

Oxygen = cellfun(@str2num, Oxygen, 'UniformOutput',false)

converting string data to numbers

Oxygen = cellfun(@str2num, Oxygen, 'UniformOutput',false)

12 månader ago | 0

Answered

Renaming Excel Files Using MATLAB Code

Change the file extension according to your need. datafolder=uigetdir(); % files=dir(datafolder); % if you don't have any ...

Renaming Excel Files Using MATLAB Code

Change the file extension according to your need. datafolder=uigetdir(); % files=dir(datafolder); % if you don't have any ...

12 månader ago | 0

Answered

Taylor Series of e^x

clear clc fprintf('Solving e^x using Taylor Series\n'); x=input('x = '); n=30; i=0; f=1; while i<=n last_term=(x.^i...

Taylor Series of e^x

clear clc fprintf('Solving e^x using Taylor Series\n'); x=input('x = '); n=30; i=0; f=1; while i<=n last_term=(x.^i...

12 månader ago | 0

| accepted

Answered

Why 0.35 divide 0.001 return double, and 0.34 divide 0.001 return int.

Not sure why it is showing like that but the case is both are double. a=0.351/.001 whos a b=0.352/.001 whos b

Why 0.35 divide 0.001 return double, and 0.34 divide 0.001 return int.

Not sure why it is showing like that but the case is both are double. a=0.351/.001 whos a b=0.352/.001 whos b

12 månader ago | 0

Answered

clearing text filed in app when clicking in the text box

Numeric field needs a default number. It cannot be blank. As Mohammad Sami told, you can use the tooltip property to display hi...

clearing text filed in app when clicking in the text box

Numeric field needs a default number. It cannot be blank. As Mohammad Sami told, you can use the tooltip property to display hi...

12 månader ago | 0

Answered

installation problem with R2019b

Disable your antivirus and try again. Seems a network firewall blocking problem.

installation problem with R2019b

Disable your antivirus and try again. Seems a network firewall blocking problem.

12 månader ago | 0

Answered

I would like to change the massflowrate when the statement is correct, could you help?

The problem is with the line you are changing values of massflowrate. You are making it logical condition rather assigning it a ...

I would like to change the massflowrate when the statement is correct, could you help?

The problem is with the line you are changing values of massflowrate. You are making it logical condition rather assigning it a ...

12 månader ago | 0

| accepted

Answered

Water Tank input that changes based on volume.

Please check with the following clear, clc V0 = 50; %initial volume (m^3) c0 = 0; %initial concentration Qin = ...

Water Tank input that changes based on volume.

Please check with the following clear, clc V0 = 50; %initial volume (m^3) c0 = 0; %initial concentration Qin = ...

12 månader ago | 0

| accepted

Answered

Importing txt files and using loops

Here I have tested with your J94.txt file filename = 'C:\Users\Desktop\J94.txt'; %% change filepath accordingly delimiter = ' ...

Importing txt files and using loops

Here I have tested with your J94.txt file filename = 'C:\Users\Desktop\J94.txt'; %% change filepath accordingly delimiter = ' ...

12 månader ago | 0

Answered

How to enter time if it is set to the following format

Use to get current time datestr(now,"HH:MM:SS")

How to enter time if it is set to the following format

Use to get current time datestr(now,"HH:MM:SS")

12 månader ago | 0

Answered

How can i load my c++ written dll ?

First ensure that you have C++ compiler installed and linked with MATLAB. If not, please refer to this link https://in.mathwor...

How can i load my c++ written dll ?

First ensure that you have C++ compiler installed and linked with MATLAB. If not, please refer to this link https://in.mathwor...

ungefär ett år ago | 0

Question

Legend for yyaxis at two different locations

I have a figure created with plotyy. I want to place legends near to their respective axes , i.e., at northeast for left y-axis ...

ungefär ett år ago | 1 answer | 0

Solved

If-then-else

Complete the function below such that if the value of x is in the range 10 to 14, inclusive, the value 18 is assigned to y. Oth...

ungefär ett år ago

Solved

Solving Quadratic Equations (Version 1)

Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

ungefär ett år ago

Solved

Read a column of numbers and interpolate missing data

Given an input cell array of strings s, pick out the second column and turn it into a row vector of data. Missing data will be i...

ungefär ett år ago

Solved

Side of a rhombus

If a rhombus has diagonals of length x and x+1, then what is the length of its side, y? <<http://upload.wikimedia.org/wikipe...

ungefär ett år ago

Solved

Omit columns averages from a matrix

Omit columns averages from a matrix. For example: A = 16 2 3 13 5 11 10 8 9 7 ...

ungefär ett år ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

ungefär ett år ago

Solved

Determine whether a vector is monotonically increasing

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

ungefär ett år ago

Solved

Make a random, non-repeating vector.

This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

ungefär ett år ago

Solved

Sum all integers from 1 to 2^n

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

ungefär ett år ago

Solved

Magic is simple (for beginners)

Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

ungefär ett år ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

ungefär ett år ago